Hi!
I'd like to know if there's a way to verify if an index exists before getting it.
So it'd be way to protect my code against:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (2) beyond bounds (0)'
Like in PHP you can do: isset($object[10]);
and it'll return true if it exists.
Is there such a method in Objective-C/Cocoa?
Thanks!