opening the MainMenu nib window
opening the MainMenu nib window
- Subject: opening the MainMenu nib window
- From: Francis Derive <email@hidden>
- Date: Wed, 25 Jul 2007 18:54:44 +0200
Dear all,
From within the app's applicationDidBecomeActive: delegate method, I
get the main window :
screenWindow = [NSApp mainWindow];
In case the "visible at launch time" bit attribute in IB were not
checked, I do a test
if ([screenWindow isVisible]) {
// Here is OK : I get a non null NSWindow *screenWindow, its frame
and content rectangles ...
} else {
//In the else part, I want to do
[screenWindow makeKeyAndOrderFront:nil];
//but it doesn't do anything : no visible window, and a null
NSWindow *screenWindow...
}
What is wrong here ? The window is only but the initial window coming
with MainMenu.nib.
Many thanks.
fr6
_______________________________________________
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