NSBundle loadNib creates extra NSMenuItem

2008-04-18 Thread Justin Williams
Hi, I have an NSMenuItem in my application that toggles the visibility of my application's main window. If the user hasn't entered a license code for the application, I call a method in my main controller that shows a custom sheet that asks them to register. - (void) showTrialWindow {

Re: NSBundle loadNib creates extra NSMenuItem

2008-04-18 Thread Justin Williams
On Fri, Apr 18, 2008 at 2:23 PM, Rob Napier [EMAIL PROTECTED] wrote: On Apr 18, 2008, at 2:26 PM, Justin Williams wrote: When you say a secondary NSMenuItem in the user's menu bar, what do you mean? -Rob Hi Rob, I've made a short screencast that shows what's happening. As you'll see,

Re: NSBundle loadNib creates extra NSMenuItem

2008-04-18 Thread Peter Ammon
These items in the upper right are called status items, to distinguish them from menu items that are in menus. A likely reason for this is that you create the status item in awakeFromNib, and awakeFromNib is being executed twice - once when the main nib is loaded, and once again when your