Re: Are NSNumber objects some kind of numeric literals
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