Re: Messages between Threads
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