nil in cocoa collections
nil in cocoa collections
- Subject: nil in cocoa collections
- From: Ariel Feinerman <email@hidden>
- Date: Wed, 14 Mar 2012 17:49:26 +0300
Hi,
I have an mystique behavior in the NSMutableDictionary
one cannot while one contains a nil for key and value so when print in
nslog
*{ *
**
*"key" = "value"; *
**
*(null) = (null); *
*} *
one is not an NSNull
then
NSArray *keys = [_f allKeys];
throwing an exception
*Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '*** -[NSArray initWithObjects:count:]: attempt to insert nil
object at objects[31]' *
--
best regards
Ariel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden