On Mon, 14 Jul 2014 09:11:58 -0700, Jens Alfke said:

>But I agree about NSNumbers being more complicated. The only time you
>need to use an NSNumber is if you want to stick a number into a
>collection or otherwise need to treat it as an object.

It's also useful for optional values, where a nil NSNumber is different from a 
zero valued integer.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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

This email sent to arch...@mail-archive.com

Reply via email to