• 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: 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


  • Follow-Ups:
    • Re: opening the MainMenu nib window
      • From: "I. Savant" <email@hidden>
    • Re: opening the MainMenu nib window
      • From: Fritz Anderson <email@hidden>
References: 
 >opening the MainMenu nib window (From: Francis Derive <email@hidden>)
 >Re: opening the MainMenu nib window (From: "I. Savant" <email@hidden>)

  • Prev by Date: Custom NSViews and the view hiarchy
  • Next by Date: Re: Custom NSViews and the view hiarchy
  • Previous by thread: Re: opening the MainMenu nib window
  • Next by thread: Re: opening the MainMenu nib window
  • Index(es):
    • Date
    • Thread