Re: opening the MainMenu nib window
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