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

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


  • Follow-Ups:
    • Re: opening the MainMenu nib window
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Writing Mail.app Plugin
  • Next by Date: Re: Moving the focus from one TextEdit control to another
  • Previous by thread: Get Toolbar End-Gradient Color
  • Next by thread: Re: opening the MainMenu nib window
  • Index(es):
    • Date
    • Thread