• 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: NSArray or MutableArray Null/NIL placeholder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArray or MutableArray Null/NIL placeholder


  • Subject: Re: NSArray or MutableArray Null/NIL placeholder
  • From: Alastair Houghton <email@hidden>
  • Date: Wed, 30 May 2007 16:24:36 +0100

On 30 May 2007, at 15:57, Charles Steinman wrote:

To insert a null object into an array, use NSNull. And no, it's not necessary to retain an object before you put it into an array. NSArray copies its contents.

NSArray *retains* its contents. It doesn't copy them. There's often little difference for immutable objects (indeed, -copy often just does -retain in those cases), but for mutable objects there's a huge difference so it pays to be precise.


Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Re: NSArray or MutableArray Null/NIL placeholder (From: Charles Steinman <email@hidden>)

  • Prev by Date: How can I reset QTMovieView contents?
  • Next by Date: Re: NSTableColumn 'enabled' binding not in 10.3? Any others?
  • Previous by thread: Re: NSArray or MutableArray Null/NIL placeholder
  • Next by thread: Re: NSArray or MutableArray Null/NIL placeholder
  • Index(es):
    • Date
    • Thread