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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to