• 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: app delegate +initialize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: app delegate +initialize


  • Subject: Re: app delegate +initialize
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 23 Sep 2009 09:44:14 -0700
  • Thread-topic: app delegate +initialize

On Wed, 23 Sep 2009 08:26:58 -0700, Jens Alfke <email@hidden> said:
>This is why it's best to do your initialization in an -awakeFromNib
>method

Whoa, whoa. Let's be fair. There is some common initialization (such as
registering defaults, esp. when bindings are also involved) that *must* be
done in +initialize, as awakeFromNib is not early enough. And Apple's own
code examples advise and demonstrate this. 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: app delegate +initialize
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Creator Codes in Snow Leopard
  • Next by Date: Re: Getting content out of a WebView
  • Previous by thread: Re: app delegate +initialize
  • Next by thread: Re: app delegate +initialize
  • Index(es):
    • Date
    • Thread