• 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: opening the MainMenu nib window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: opening the MainMenu nib window


  • Subject: Re: opening the MainMenu nib window
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 25 Jul 2007 13:34:14 -0400

On 7/25/07, Francis Derive <email@hidden> wrote:
There is all of this to make it not null ! ( I checked for "hidden" ).

Anyway, when I check the "visible at launch time" attribute in IB -
for the window object in the nib file, all is fine :


 Read the documentation again, but this time, keep in mind that
"main" does not mean what you seem to think it does. See this
document:

http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html

 Read the section titled, "Main and Key Windows" very closely.

 The reason this doesn't work when you uncheck "visible at launch
time" is because, since there is no window on-screen, there is no
"main window" (nor "key window" for that matter).

 The short answer is, create an outlet in your controller and connect
it to the window. use the outlet to talk to the window directly,
rather than relying on it being the main window to message it.

--
I.S.
_______________________________________________

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: opening the MainMenu nib window
      • From: Francis Derive <email@hidden>
References: 
 >opening the MainMenu nib window (From: Francis Derive <email@hidden>)
 >Re: opening the MainMenu nib window (From: "I. Savant" <email@hidden>)
 >Re: opening the MainMenu nib window (From: Francis Derive <email@hidden>)

  • Prev by Date: Re: opening the MainMenu nib window
  • Next by Date: Guidelines for NIB usage
  • Previous by thread: Re: opening the MainMenu nib window
  • Next by thread: Re: opening the MainMenu nib window
  • Index(es):
    • Date
    • Thread