• 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: NSDictionary trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary trouble


  • Subject: Re: NSDictionary trouble
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 19 Jan 2010 20:53:52 -0800

On Jan 19, 2010, at 8:47 PM, Jeff Laing wrote:

> With all due respect, why not?  Apple gives us all those convenience methods but you say we shouldn't use them?

Convenience ≠ performance.

The autoreleased factory methods are very convenient when you're using the result temporarily, so you don't have to remember to release it. But when the point of the call is to get a reference, and you're not releasing right away anyway, it's just as easy and more efficient to use alloc/init.

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >NSDictionary trouble (From: Shawn Rutledge <email@hidden>)
 >Re: NSDictionary trouble (From: Jens Alfke <email@hidden>)
 >Re: NSDictionary trouble (From: Shawn Rutledge <email@hidden>)
 >Re: NSDictionary trouble (From: Graham Cox <email@hidden>)
 >Re: NSDictionary trouble (From: Shawn Rutledge <email@hidden>)
 >Re: NSDictionary trouble (From: Jens Alfke <email@hidden>)
 >RE: NSDictionary trouble (From: Jeff Laing <email@hidden>)
 >Re: NSDictionary trouble (From: mmalc Crawford <email@hidden>)
 >RE: NSDictionary trouble (From: Jeff Laing <email@hidden>)

  • Prev by Date: RE: NSDictionary trouble
  • Next by Date: Re: NSDictionary trouble
  • Previous by thread: RE: NSDictionary trouble
  • Next by thread: Re: NSDictionary trouble
  • Index(es):
    • Date
    • Thread