• 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: Are NSNumber objects some kind of numeric literals
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are NSNumber objects some kind of numeric literals


  • Subject: Re: Are NSNumber objects some kind of numeric literals
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 23 Mar 2009 14:40:05 +0100


Le 23 mars 09 à 14:25, Horst Jäger a écrit :

Hi,

I noticed that NSNumber objects with the same value are all have the same address.

But since they are created at runtime they must all be held in a big container - or am I mistaken?

Thanks in advance

Horst

Only commonly used values are cached (integer with a value < some threshold).


Anyway this is an implementation details and you should neither rely on this nor have to worry about how the system choose to cached them.




_______________________________________________

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


References: 
 >Are NSNumber objects some kind of numeric literals (From: Horst Jäger <email@hidden>)

  • Prev by Date: Re: NSAppleScript - what is going on here?
  • Next by Date: Core Animation slow down
  • Previous by thread: Are NSNumber objects some kind of numeric literals
  • Next by thread: Core Animation slow down
  • Index(es):
    • Date
    • Thread