NSBundle loadNib creates extra NSMenuItem
NSBundle loadNib creates extra NSMenuItem
- Subject: NSBundle loadNib creates extra NSMenuItem
- From: "Justin Williams" <email@hidden>
- Date: Fri, 18 Apr 2008 13:26:59 -0500
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@hidden
work: http://www.secondgearllc.com/
play: http://www.carpeaqua.com
_______________________________________________
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