• 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: debugging hard-to-locate error in NSApplication delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debugging hard-to-locate error in NSApplication delegate


  • Subject: Re: debugging hard-to-locate error in NSApplication delegate
  • From: "Michael Ash" <email@hidden>
  • Date: Mon, 12 Jan 2009 20:06:24 -0500

On Mon, Jan 12, 2009 at 1:41 PM, Quincey Morris
<email@hidden> wrote:
> This isn't going to work because your app delegate object is in your NIB
> file and is (re)created at startup by unarchiving. Therefore,
> 'initWithCoder' will be called instead or 'init'.

Well actually no, the true picture is considerably more complex than
that, and -init is correct.

NSWindows get the full NSWindow initializer.

Plain old NSViews (which are then often customized to a different
subclass in the inspector) get -initWithFrame:.

Other top-level nib objects get plain old -init.

And everything else (pre-made views and controls off the palette) gets
-initWithCoder:.

I *think* that's the full list of what gets initialized how, but I may
have missed a spot.

Mike
_______________________________________________

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: debugging hard-to-locate error in NSApplication delegate
      • From: mmalc Crawford <email@hidden>
References: 
 >debugging hard-to-locate error in NSApplication delegate (From: Greg Beaver <email@hidden>)
 >Re: debugging hard-to-locate error in NSApplication delegate (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Disabled button looks like enabled
  • Next by Date: Re: debugging hard-to-locate error in NSApplication delegate
  • Previous by thread: Re: debugging hard-to-locate error in NSApplication delegate
  • Next by thread: Re: debugging hard-to-locate error in NSApplication delegate
  • Index(es):
    • Date
    • Thread