Skip navigation.
 
mlRe: Button doesn't respond in a modal sheet created from window NIB
FROM : Nick Zitzmann
DATE : Tue Nov 23 22:56:35 2004

On Nov 23, 2004, at 2:17 PM, Keith Blount wrote:

> Looking at
> the Anguish et al book, I am thinking that maybe I
> need to move my for... loop into a separate method and
> then call that method using
> detachNewThreadSelector:toTarget:withObject: - is that
> the way to go


Yes. You'll also have to end your sheet in the method running in the
thread, and if you're using mutable objects, then you must also
implement locking so two threads don't try and operate on the same
object at once. Don't forget to use -performSelectorInMainThread: when
you need to end the sheet, since a good deal of the AppKit is not
thread-safe.

Nick Zitzmann
<http://www.chronosnet.com/>

Related mailsAuthorDate
mlButton doesn't respond in a modal sheet created from window NIB Keith Blount Nov 23, 20:09
mlRe: Button doesn't respond in a modal sheet created from window NIB Nick Zitzmann Nov 23, 20:19
mlRe: Button doesn't respond in a modal sheet created from window NIB Keith Blount Nov 23, 22:17
mlRe: Button doesn't respond in a modal sheet created from window NIB Nick Zitzmann Nov 23, 22:56
mlRe: Button doesn't respond in a modal sheet created from window NIB Keith Blount Nov 24, 00:29
mlRe: Button doesn't respond in a modal sheet created from window NIB Nick Zitzmann Nov 24, 00:40
mlRe: Button doesn't respond in a modal sheet created from window NIB Keith Blount Nov 24, 19:14