Crashing a Menu Extra

Posted by admin on Oct 2, 2009 in Mac OS X |

On a current project, whenever a menu extra menu was open and an underlying item was updated, the entire menu extra would crash.  Upon further review here (note “Main Thread Only Classes”), it appears that it is verboten to update the menu item title from a thread other than the main thread.  Check out this git repository for a simple project that used to reproduce the problem and now shows how to set the menu item title properly from a non-main thread.

git://github.com/mharper/MenuExtraCrash.git

Comments are closed.

Copyright © 2017 Standalone Code LLC All rights reserved. Theme by Laptop Geek.