• 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: if statement causing 32 Byte leak?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: if statement causing 32 Byte leak?


  • Subject: Re: if statement causing 32 Byte leak?
  • From: Andy Lee <email@hidden>
  • Date: Sat, 09 Jan 2010 20:53:40 -0500

On Jan 9, 2010, at 8:35 PM, Mr. Gecko wrote:
> I just looked and saw that, so one question. Is array, string, and data all the same as new or are those autorelease?

<http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/MemoryMgmt/Articles/mmObjectOwnership.html#//apple_ref/doc/uid/20000043>.

See the bullet points under "Object Ownership Policy".  See also the section "Obtaining Objects Using Convenience Methods", which explains the +array, +string, +data, and similarly named methods.

--Andy

_______________________________________________

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

  • Follow-Ups:
    • Re: if statement causing 32 Byte leak?
      • From: "Mr. Gecko" <email@hidden>
References: 
 >if statement causing 32 Byte leak? (From: "Mr. Gecko" <email@hidden>)
 >Re: if statement causing 32 Byte leak? (From: Paul Bruneau <email@hidden>)
 >Re: if statement causing 32 Byte leak? (From: "Mr. Gecko" <email@hidden>)
 >Re: if statement causing 32 Byte leak? (From: Graham Cox <email@hidden>)
 >Re: if statement causing 32 Byte leak? (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: if statement causing 32 Byte leak?
  • Next by Date: Re: if statement causing 32 Byte leak?
  • Previous by thread: Re: if statement causing 32 Byte leak?
  • Next by thread: Re: if statement causing 32 Byte leak?
  • Index(es):
    • Date
    • Thread