• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ints in NSDictionaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Ints in NSDictionaries (From: email@hidden)

  • Prev by Date: Re: Build Log
  • Next by Date: Crash while making NSDictionary... Help!
  • Previous by thread: Re: Ints in NSDictionaries
  • Next by thread: Re: Ints in NSDictionaries
  • Index(es):
    • Date
    • Thread