Re: Integer as key in NSMutableDictionary
Re: Integer as key in NSMutableDictionary
- Subject: Re: Integer as key in NSMutableDictionary
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 5 May 2009 01:24:49 +0200
Le 4 mai 09 à 22:58, Alexander Heinz a écrit :
On May 4, 2009, at 3:22 AM, Weydson Lima wrote:
I know that these methods are expecting pointers as parameters and
I am passing a scalar. So, what's the best way to approach that?
That's correct. You really shouldn't put any scalar types in an
NSDictionary (or any other container type in the Cocoa API.)
Not quite true. NSHashTable and NSMapTable are part of Cocoa API and
are design to support NSInteger directly.
_______________________________________________
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