• 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
NSBundle loadNib creates extra NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSBundle loadNib creates extra NSMenuItem
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: setTextContainerInset with different values for left and right
  • Next by Date: Bitmap data from CGImageRef
  • Previous by thread: Pasteboard inconsistencies
  • Next by thread: Re: NSBundle loadNib creates extra NSMenuItem
  • Index(es):
    • Date
    • Thread