Re: opening the MainMenu nib window
Re: opening the MainMenu nib window
- Subject: Re: opening the MainMenu nib window
- From: Francis Derive <email@hidden>
- Date: Wed, 25 Jul 2007 19:19:40 +0200
I.S,
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 :
[NSApp mainMenu] returns a not null value.
When the same attribute is unchecked, the window is not visible
( normal ), but remains unvisible even after sending
makeKeyAndOrderFront: ( I am not sure about the value of "sender" :
nil, self - did read the doc, still looking for that somewhere ).
Fr6
On Jul 25, 2007, at 7:04 PM, I. Savant wrote:
On 7/25/07, Francis Derive <email@hidden> wrote:
//but it doesn't do anything : no visible window, and a null
NSWindow *screenWindow...
Have you read the documentation for -mainWindow? It says, "This
method returns nil if there is no main window, if the application's
nib file hasn't finished loading, if the receiver is not active, or if
the application is hidden."
--
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