Re: My services in my own app
Re: My services in my own app
- Subject: Re: My services in my own app
- From: Scott Ribe <email@hidden>
- Date: Tue, 02 Sep 2014 17:33:42 -0600
On Sep 2, 2014, at 12:45 PM, Georg Seifert <email@hidden> 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
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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