• 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: bypass NSApp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bypass NSApp


  • Subject: Re: bypass NSApp
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Thu, 9 Jul 2009 23:33:10 -0500

On Thu, Jul 9, 2009 at 6:09 PM, Scott Thompson<email@hidden> wrote:
> To empasize this point.  Consider, for example, the method
> performSelectorOnMainThread:.  We use this API in several place to ensure
> that functionality is performed on the same thread that is processing user
> events.  If code were able to change the thread responsible for handling
> events willy-nilly, that kind of functionality would break badly.

... or two plugins both trying this hack, and claiming their thread as
the main thread.

I sympathize with what you're trying to do, Julien, but it's simply
not going to work. Personally, I'd write a full fledged helper app in
Cocoa, maybe marking it as a background app (so it doesn't appear in
the Dock), and then communicate with it in my plugin. There are many
ways to do this: unix sockets, mach ports, distributed objects, shared
memory, etc, etc.
_______________________________________________

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

  • Follow-Ups:
    • Re: bypass NSApp
      • From: Julien Isorce <email@hidden>
References: 
 >bypass NSApp (From: Julien Isorce <email@hidden>)
 >Re: bypass NSApp (From: Julien Isorce <email@hidden>)
 >Re: bypass NSApp (From: Bill Bumgarner <email@hidden>)
 >Re: bypass NSApp (From: Scott Thompson <email@hidden>)

  • Prev by Date: Re: TableView displaying a zillion empty rows Problem Solved!
  • Next by Date: NSConnection Proxy Crash
  • Previous by thread: Re: bypass NSApp
  • Next by thread: Re: bypass NSApp
  • Index(es):
    • Date
    • Thread