Re: App crashes on thread exit
Re: App crashes on thread exit
- Subject: Re: App crashes on thread exit
- From: Fabio Genoese <email@hidden>
- Date: Sat, 12 Oct 2002 18:29:19 +0200
Am Samstag, 12.10.02 um 18:02 Uhr schrieb Cameron Hayne:
So this means that your updating of the GUI happens in the worker
thread,
not the main (AppKit) thread as you had thought.
Usually you just set a flag in the worker thread and check this flag
in the
main thread (protected with NSLock) or else set up more sophisticated
communication between threads. But, assuming you are targeting Jaguar,
maybe
you could use the new performSelectorOnMainThread method (see NSObject
or
the Foundation release notes).
Hi,
thanks for your reply - I'm using performSelectorOnMainThread to update
the UI now. However, it still crashes (same error log). It must be
something else. *shrug*
Fabio
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.