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:
mccallum 1995-03-23 04:05:43 +00:00
parent 234132faa3
commit 88ead3337f

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];