Re: Threading, save panels, and segfaults
Re: Threading, save panels, and segfaults
- Subject: Re: Threading, save panels, and segfaults
- From: Andreas Monitzer <email@hidden>
- Date: Sun, 11 Nov 2001 00:08:04 +0100
On Saturday, November 10, 2001, at 11:48 , R. Tony Goold wrote:
Your GUI interactions should be done from the main thread. If a
secondary thread needs to make AppKit calls, it should notify the main
thread (read up on Distributed Objects and Notification Centers) and
let the main thread do it instead.
Notifications aren't thread safe, either :)
There are two ways: DO and sending events (the second one is pretty
clumsy and should only be used when there is a single event that could
happen, it usually requires an NSApplication subclass).
andy