• 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: Controller and NIB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Controller and NIB (From: "J. Todd Slack" <email@hidden>)
 >Re: Controller and NIB (From: Nick Zitzmann <email@hidden>)
 >Re: Controller and NIB (From: "J. Todd Slack" <email@hidden>)

  • Prev by Date: Re: Getting localized NSPredicateEditor
  • Next by Date: Re: Message Forwarding Overhead / Performance
  • Previous by thread: Re: Controller and NIB
  • Next by thread: Re: Controller and NIB
  • Index(es):
    • Date
    • Thread