, - . NSArray, __NSCFArray, . : NSArray . ( isa) , .
, :
NSArray *array = [someObject someMethod];
[array yourMethod];
:
NSArray *array = [NSArray arrayWithArray: [someObject someMethod]];
[array yourMethod];
It works, but I hope so. This is pretty unpredictable. This is why I created my own implementation of the array using open source here. I did not use methods that I do not need, and I added new ones that I may need (for example, shuffle). I am testing it now.
source
share