Cast aCollectionClass to (id) so we can send NSObject protocol

messages that aren't in Collecting.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@195 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-03-23 04:05:43 +00:00
parent aae20e5bfe
commit d9e982bf0c

View file

@ -170,8 +170,8 @@
[self safeWithElementsInReverseCall:doIt];
else
{
/* Can I assume that all Collections will inherit from Object? */
if ([aCollection
/* Can I assume that all Collections will inherit from NSObject? */
if ([(id)aCollection
respondsToSelector:@selector(withElementsInReverseCall:)])
[(id)aCollection withElementsInReverseCall:doIt];
else
@ -196,8 +196,8 @@
[self safeWithElementsInReverseCall:doIt];
else
{
if ([aCollection respondsToSelector:
@selector(withElemetnsInReverseCall:)])
if ([(id)aCollection respondsToSelector:
@selector(withElemetnsInReverseCall:)])
[(id)aCollection withElementsInReverseCall:doIt];
else
[aCollection withElementsCall:doIt];