• 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
Strange NSStatusItem Bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange NSStatusItem Bug


  • Subject: Strange NSStatusItem Bug
  • From: David McGavern <email@hidden>
  • Date: Mon, 1 Dec 2003 21:39:03 -0500

I created a NSStatusItem with a menu. I added LSUIElement=1 to my
info.plist. When I first click the status item while still in Xcode, it
works great. But, when I switch to any other app the menu won't appear
again! It will sometimes come back, but I can't find a pattern to this.

I also noticed that, even though the menu isn't showing, each menu item
is still being verified in - (BOOL)validateMenuItem:(NSMenuItem *)item.
Adding to the strangeness, when I open the app from outside of Xcode,
it works, but only for a little while before the menu will stop
working.

I've searched and searched my code, and can't find anything wrong! Any
help is greatly appreciated.

Thanks again!

David

PS- I did notice that another app I wrote (and compiled) in 10.2 a
while back works perfectly without any menu loss.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Strange NSStatusItem Bug
      • From: Eric Schlegel <email@hidden>
  • Prev by Date: Re: NSBezierPath
  • Next by Date: Re: MutableArrays losing its contents?
  • Previous by thread: Re: dumb button/textfield question
  • Next by thread: Re: Strange NSStatusItem Bug
  • Index(es):
    • Date
    • Thread