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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]
  • NSStatusBar Dean Krueger
    • Re: NSStatusBar Nick Zitzmann

Reply via email to