NSStatusItem refresh problem
NSStatusItem refresh problem
- Subject: NSStatusItem refresh problem
- From: Matt <email@hidden>
- Date: Wed, 12 Aug 2009 04:41:29 -0700
I'm running into a refresh problem with an NSStatusItem. It began when
I added a -setView call to one of the menu items.
The refresh issue occurs when the following take place:
1- Command-tab to any other app
2- Click in the status item
3- Release the mouse and command-tab back to my app
Following these steps results in the refresh issue seen below:
http://bravobug.com/images/NSStatusItem_Refresh_Problem.mov
As I mentioned, this began after adding a -setView call, and removing
that line (so that the NSSlider and its parent view are not put into
the menu), fixes the issue. So I am wondering if there is something I
need to set explicitly in my custom view that otherwise causes this
issue?
Another quick mention: this app uses a shielding-level fullscreen
window and this refresh issue does not happen when the fullscreen
window is on screen, only when the fullscreen window happens to be
hidden. I'm assuming the refresh of the fullscreen window causes the
window server to refresh the underlying views (?), thus fixing the
issue. So can I force the statusbar/menu to refresh manually? I was
not able to find the appropriate method for that in the docs.
Thank you in advance for any suggestions or advice~
_______________________________________________
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