• 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
Re: NSStatusItem not highlighted when using NSWindow instead of NSMenu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSStatusItem not highlighted when using NSWindow instead of NSMenu


  • Subject: Re: NSStatusItem not highlighted when using NSWindow instead of NSMenu
  • From: Basil Shkara <email@hidden>
  • Date: Sun, 28 Jan 2007 12:20:52 +1100

Hi,

Although I solved this problem shortly after I had submitted it, I revisited this post and found that there were still no answers posted.

The solution is simple enough.

Instead of using NSStatusBar's setTitle: and it's own inbuilt methods to control the activation of the statusitem, you must use your own custom view to display the statusitem in the statusbar. Admittedly this is not a very nice solution as you now have to implement all of the mouse tracking and image highlighting yourself, however this was the only solution that I found worked well enough to incorporate in my application.

If anyone is interested and is having troubles with NSStatusBar, I would be more than happy to post some sample code up.

Kind regards,
Basil.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: Re: KVO, design and documentaion
  • Next by Date: Re: KVO, design and documentaion
  • Previous by thread: NSTreeController doesn't notice insertion
  • Next by thread: Setting NSDatePicker to display 24-hour time
  • Index(es):
    • Date
    • Thread