Re: Controller and NIB
Re: Controller and NIB
- Subject: Re: Controller and NIB
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 28 Oct 2008 16:00:49 -0700
On Tue, Oct 28, 2008 at 3:09 PM, J. Todd Slack
<email@hidden> wrote:
> What is a full proof way to have code executed when a NIB is loaded?
By loading it yourself, by implementing the supported delegate method
if NSApplication is the one loading it, by implementing windowDidLoad
in a subclassing NSWindowController, etc. It depends on who is loading
the NIB.
> When my MainMenu.nib displays its Window, I want to execute some code.
In this particular case look at the delegate methods of NSApplication.
In particular applicationDidFinishLaunching:.
-Shawn
_______________________________________________
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