• 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: "Mr. Gecko" <email@hidden>
  • Date: Sat, 9 Jan 2010 19:35:58 -0600

I just looked and saw that, so one question. Is array, string, and data all the same as new or are those autorelease?

On Jan 9, 2010, at 7:34 PM, Graham Cox wrote:

>
> On 10/01/2010, at 12:28 PM, Mr. Gecko wrote:
>
>> I thought it was [[[id alloc] init] autorelease];
>
>
> You thought wrong:
>
> new
> Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object.
>
> + (id)new
>
> Return Value
> A new instance of the receiver.
>
> Discussion
> This method is a combination of alloc and init. Like alloc, it initializes the isa instance variable of the new object so it points to the class data structure. It then invokes the init method to complete the initialization process.
>
> --Graham
>
>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Joar Wingfors <email@hidden>
    • Re: if statement causing 32 Byte leak?
      • From: Andy Lee <email@hidden>
    • Re: if statement causing 32 Byte leak?
      • From: Graham Cox <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>)

  • Prev by Date: Re: Enabling NSZombieEnabled programatically
  • 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