Re: NSStatusItem not highlighted when using NSWindow instead of NSMenu
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