• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: My services in my own app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: My services in my own app (From: Georg Seifert <email@hidden>)
 >Re: My services in my own app (From: Georg Seifert <email@hidden>)

  • Prev by Date: Re: My services in my own app
  • Next by Date: Re: Best practice for creating a temporary file
  • Previous by thread: Re: My services in my own app
  • Next by thread: [PSA] JavaScript for Automation
  • Index(es):
    • Date
    • Thread