mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
234132faa3
commit
88ead3337f
1 changed files with 4 additions and 4 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue