Re: Calling NSBeginAlertSheet() from outside the main thread messes up animation
Re: Calling NSBeginAlertSheet() from outside the main thread messes up animation
- Subject: Re: Calling NSBeginAlertSheet() from outside the main thread messes up animation
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 24 Nov 2003 15:55:06 -0800
On Nov 24, 2003, at 2:54 PM, Daniel Aarno wrote:
What happens is that as the sheet animates it is transparent
(outlined) or transparent green. If I invoke NSBeginAlertSheet() from
the main thread no such problems occur. Everything else works as
expected, only the animation is messed up. Anyone have any insight on
this (cause and or solution)?
You should only display windows and sheets in the main thread, or else
you'll encounter graphical glitches like this one, or worse. One way of
solving this problem is to write a method into the object that starts
the alert sheet, and use NSObject's -performSelectorOnMainThread:... to
ensure it runs in the main thread.
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://seiryu.home.comcast.net/
S/MIME signature available upon request
"That's a funny thing to promise. Well, you can't never let anything
happen to him [Nemo]; then, nothing would ever happen to him." - Dory,
from the movie "Finding Nemo"
_______________________________________________
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.