• 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: Scott Thompson <email@hidden>
  • Date: Thu, 09 Jul 2009 18:09:25 -0500



Sent from my iPhone

On Jul 9, 2009, at 10:04 AM, Bill Bumgarner <email@hidden> wrote:

On Jul 9, 2009, at 2:46 AM, Julien Isorce wrote:
I am trying to isolate this difference in order to avoid to run the main
loop in the main thread.

Don't bother. Cocoa is quite explicitly designed to not support event processing on any thread other than the main thread. No amount of "trying to isolate" Cocoa functionality into a thread will make it work.

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.
_______________________________________________


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: "Stephen J. Butler" <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>)

  • Prev by Date: [MEET] BYU CocoaHeads meeting tonight at 7:00pm
  • Next by Date: CFBundleTypeName
  • Previous by thread: Re: bypass NSApp
  • Next by thread: Re: bypass NSApp
  • Index(es):
    • Date
    • Thread