Re: NSStatusBar
Re: NSStatusBar
- Subject: Re: NSStatusBar
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 04 Apr 2011 09:23:25 -0600
On Apr 2, 2011, at 8:04 AM, Dean Krueger wrote:
> Hello,
> I am developing a finder Menubar app, and am having one mysterious crash. I build the standard menu options when the app launches. Then in a NSOperationQueue I make a network connection and get some data to build out the dynamic data in the menu. If the user clicks on the menubar and displays the standard menu options the main thread will crash displaying this? HIStandardMenuView::GetItemWidth, if the menubar isn't clicked on, everything works great. Any idea's?
>
> Do I need to lock the StatusBar some how while updating the dynamic elements?
Are you sure you're doing all of your AppKit operations on the main thread using -performSelectorOnMainThread:...? With a few documented exceptions, AppKit classes aren't thread-safe.
Nick Zitzmann
<http://www.chronosnet.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
References: | |
| >NSStatusBar (From: Dean Krueger <email@hidden>) |