On Sep 2, 2014, at 12:45 PM, Georg Seifert <georg.seif...@gmx.de> wrote:

> I created a small test app following the example on apples documentation. The 
> service works fine if invoked from other apps but if you select it from 
> within the same app with text selected in a text view, the app menu will stay 
> highlighted for 30s and after that it will give an error dialog: 

Yeah, you're in the run loop handling the menu event when you send an event to 
yourself, which will not be received until your code finishes so the run loop 
can get the event and dispatch it--deadlock.

-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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

This email sent to arch...@mail-archive.com

Reply via email to