• 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
aborting init
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

aborting init


  • Subject: aborting init
  • From: Rainer Standke <email@hidden>
  • Date: Mon, 29 Nov 2010 18:59:14 -0800

Hello,

I am thinking about doing something like this:

- to init a custom object, call a convenience initializer that in turn calls the designated initializer

- in the convenience initializer, before the designated initializer is called, check some conditions. If that test fails return nil.

The intended behavior is not to get anything if the conditions are not met.


Is this kosher? Do I have to do any kind of clean-up after doing something like that?

Thanks,

Rainer_______________________________________________

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: aborting init
      • From: Wim Lewis <email@hidden>
    • Re: aborting init
      • From: Graham Cox <email@hidden>
  • Prev by Date: Text colour button problem in Font Panel
  • Next by Date: Re: How to approach to write such an app?
  • Previous by thread: Re: Text colour button problem in Font Panel
  • Next by thread: Re: aborting init
  • Index(es):
    • Date
    • Thread