On May 4, 2009, at 11:52 PM, Weydson Lima wrote:
when I use
the removeObjectForKey, how can I make a reference to a specific
key? Let's
say I want to remove key that was initialized with [NSNumber
numberWithInt:1]. If I call removeObjectForKey:[NSNumber
numberWithInt:1],
that method won't work because a new NSNumber pointer is being
created,
correct?
No, it will work because NSDictionary checks the value of the pointer,
not the address of the pointer.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com