Re: awakeFromNib and sheets
Re: awakeFromNib and sheets
- Subject: Re: awakeFromNib and sheets
- From: Finlay Dobbie <email@hidden>
- Date: Sat, 25 Aug 2001 10:56:49 +0100
On Saturday, August 25, 2001, at 03:32 am, Gary C Martin wrote:
Damn and blast - NSWindow does not inherit from NSWindowController.
I'm actually using an NSPanel (sub class of NSWindow) drag'n'dropped
from the standard palette in IB. Not sure I want to get into
sub-classing NSWindowController and all that that might entail (unless
someone convinces me).
Subclassing NSWindowController is perfectly normal practice, there is
even a template for it in the Project Builder New File... panel.
However, you are perfectly fine doing your pre-display initialisation in
-awakeFromNib and your alert display in -applicationDidFinishLaunching,
as far as I can see. What's the problem with doing that?