Skip navigation.
 
mlNSBundle loadNib creates extra NSMenuItem
FROM : Justin Williams
DATE : Fri Apr 18 20:26:59 2008

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 {
   if (!oRegistrationPanel)
       [NSBundle loadNibNamed:@"Registration" owner:self];

// Other stuff
}

When I call this showTrialWindow, it will temporarily create a
secondary NSMenuItem in the user's menu bar.  Is there a better way I
could load the nib so that it wouldn't create the secondary menu item?

Thanks for the assistance.

--
-
Justin Williams
<email_removed>
work: http://www.secondgearllc.com/
play: http://www.carpeaqua.com

Related mailsAuthorDate
mlNSBundle loadNib creates extra NSMenuItem Justin Williams Apr 18, 20:26
mlRe: NSBundle loadNib creates extra NSMenuItem Justin Williams Apr 18, 22:06
mlRe: NSBundle loadNib creates extra NSMenuItem Peter Ammon Apr 18, 23:23