• 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: Memory management on returning nil in init
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory management on returning nil in init


  • Subject: Re: Memory management on returning nil in init
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 21 Jun 2010 10:28:24 -0700
  • Thread-topic: Memory management on returning nil in init

On Mon, 21 Jun 2010 12:59:14 -0400, Scott Anguish <email@hidden> said:
>
>the new suggested format for calling super is
>
>self = [super init];
>if (self) {

Then Apple should change the model code in the "Allocating and Initializing
Objects" section of The Objective-C Programming Language. That is where most
users will enounter the "suggested format".

http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Object
iveC/Articles/ocAllocInit.html

Unless that code changes, there is no meaningful sense in which any other
format is "suggested". m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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: Memory management on returning nil in init
      • From: Scott Anguish <email@hidden>
  • Prev by Date: docs, KVO and NSUserDefaults etc.
  • Next by Date: Re: NSView background color
  • Previous by thread: Re: Memory management on returning nil in init
  • Next by thread: Re: Memory management on returning nil in init
  • Index(es):
    • Date
    • Thread