• 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: Handling returning nil from init
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling returning nil from init


  • Subject: Re: Handling returning nil from init
  • From: Stefan Schüßler <email@hidden>
  • Date: Tue, 12 Jul 2005 17:02:21 +0200

On 12.07.2005, at 16:53, Theodore H. Smith wrote:
Or is there a more graceful way? Or should init actually release itself if it has to return nil?

From the docs:

"Subclass versions of this method [init] should return the new object after it has been successfully initialized. If it can’t be initialized, they should release the object and return nil."

Stefan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Handling returning nil from init (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Re: Handling returning nil from init
  • Next by Date: Re: Handling returning nil from init
  • Previous by thread: Re: Handling returning nil from init
  • Next by thread: Re: Handling returning nil from init
  • Index(es):
    • Date
    • Thread