Re: Ints in NSDictionaries
Re: Ints in NSDictionaries
- Subject: Re: Ints in NSDictionaries
- From: Matt Majka <email@hidden>
- Date: Tue, 21 May 2002 20:10:48 -0600
On Tuesday, May 21, 2002, at 03:19 pm, email@hidden wrote:
I need to store an integer in an NSDictionary, but when I try to set a
the object for a key to an int (even if I use an id cast), I refuses to
compile. Is there anyway to do this?
You have to wrap it in an NSNumber before you can stuff it
in a dictionary or array.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.