• 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: NSNumber's Purpose
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSNumber's Purpose (From: Jonathan Faulkenberry <email@hidden>)
 >Re: NSNumber's Purpose (From: Eamon Ford <email@hidden>)

  • Prev by Date: Re: Cocoa/Applescript question
  • Next by Date: Exciting Opportunity with Ivy, Hyd..
  • Previous by thread: Re: NSNumber's Purpose
  • Next by thread: Cocoa/Applescript question
  • Index(es):
    • Date
    • Thread