• 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: Joar Wingfors <email@hidden>
  • Date: Sat, 9 Jan 2010 18:02:46 -0800

On 9 jan 2010, at 17.35, Mr. Gecko wrote:

> Is array, string, and data all the same as new or are those autorelease?


These classes all inherit from NSObject, so unless they override and change the behavior of "+new" (hint: They don't, that would be crazy) their behavior would have to be the same.

Besides: You just need to learn the memory management guideline (that I quoted a piece from earlier) to know what the behavior is. I understand that it can take a bit of time before this becomes second nature if you're new to Cocoa, but don't worry, there is a very small set of rules and Cocoa is very consistent in this regard, so you'll get used to it in no time.

j o a r


_______________________________________________

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: 
 >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: Enabling NSZombieEnabled programatically
  • Previous by thread: Re: if statement causing 32 Byte leak?
  • Next by thread: Re: if statement causing 32 Byte leak?
  • Index(es):
    • Date
    • Thread