• 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: Messages between Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Messages between Threads


  • Subject: Re: Messages between Threads
  • From: Michael Ash <email@hidden>
  • Date: Sun, 15 Mar 2009 23:51:42 -0400

On Sun, Mar 15, 2009 at 10:34 AM, Shawn Erickson <email@hidden> wrote:
> On Sun, Mar 15, 2009 at 1:40 AM, Paul Sanders <email@hidden> wrote:
>>>> I am used to a more robust threading model.
>>
>>> I'm curious, what is not "robust" about the Cocoa threading model, and
>>> what are you comparing it to?
>>
>> Well, only being able to draw and process events on the main thread mainly.
>
> You can _draw_ from a secondary thread (or multiple secondary threads)
> when using AppKit.

I'd move that emphasis to a different word: *you* can draw from a
secondary thread. I.e. your custom view can do threaded drawing. But
touching AppKit controls from a secondary thread is a quick path to a
misbehaving application.

For all intents and purposes, Cocoa's GUI side is main-thread-only.
The few exceptions to that rule are more about performance than
convenience.

Mike
_______________________________________________

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: 
 >Messages between Threads (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Messages between Threads (From: "Paul Sanders" <email@hidden>)
 >Re: Messages between Threads (From: Michael Ash <email@hidden>)
 >Re: Messages between Threads (From: "Paul Sanders" <email@hidden>)
 >Re: Messages between Threads (From: Joar Wingfors <email@hidden>)
 >Re: Messages between Threads (From: "Paul Sanders" <email@hidden>)
 >Re: Messages between Threads (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Bindings and radio buttons and enabled
  • Next by Date: Re: Bindings and nested checkboxes and enabled
  • Previous by thread: Re: Messages between Threads
  • Next by thread: Re: Messages between Threads
  • Index(es):
    • Date
    • Thread