Re: Main menu update problem

2011-08-11 Thread Michael Domino
Laurent, The doc for showWindow says: If the window is an NSPanel object and has its becomesKeyOnlyIfNeeded flag set to YES, the window is displayed in front of all other windows but is not made key; otherwise it is displayed in front and is made key. My window is an NSWindow, so

Re: Main menu update problem (SOLUTION)

2011-08-11 Thread Michael Domino
This works to update the main menu. Kind of a kludge, since the menu is already set as visible, but it must also force a redraw. [NSMenu setMenuBarVisible:YES]; [MyWindowController showWindow:self]; On Aug 10, 2011, at 5:42 PM, Laurent Daudelin wrote: On Aug 10, 2011, at 14:25, Michael

Main menu update problem

2011-08-10 Thread Michael Domino
Hi, My app sometimes runs by being started by a launch agent. When that happens, the app in minimized in the Dock by calling the NSApplication method miniaturizeAll. That works fine. When the operation is complete, I want to again show the app, so I call the NSWindowController method

Re: Main menu update problem

2011-08-10 Thread Laurent Daudelin
On Aug 10, 2011, at 14:25, Michael Domino wrote: Hi, My app sometimes runs by being started by a launch agent. When that happens, the app in minimized in the Dock by calling the NSApplication method miniaturizeAll. That works fine. When the operation is complete, I want to again show