Re: NSNumber's Purpose
Re: NSNumber's Purpose
- Subject: Re: NSNumber's Purpose
- From: Andrew Farmer <email@hidden>
- Date: Thu, 15 Dec 2005 01:16:34 -0800
On 14 Dec 05, at 22:10, Eamon Ford wrote:
On Dec 14, 2005, at 10:03 PM, Jonathan Faulkenberry wrote:
I've been reading documentation for a while now, but I am still
quite confused. Could someone please briefly explain what the
purpose of NSNumber is?
I think the purpose is that you can't store primitive data types in
an array, but I'm not completely sure. Someone please correct me if
I'm wrong.
That's absolutely correct. Collection types (like NSArray and
NSDictionary) expect to have objects passed to them, so you need some
sort of class to encapsulate raw number values.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden