Re: Ints in NSDictionaries
Re: Ints in NSDictionaries
- Subject: Re: Ints in NSDictionaries
- From: Anthony Arthur <email@hidden>
- Date: Wed, 22 May 2002 14:21:27 -0400
dictionaries will only accept objects and int is not an object, it is a
scalar type. Use NSNumber instead.
-b
On Tuesday, May 21, 2002, at 05: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?
Owen Anderson
_______________________________________________
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.
_______________________________________________
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.