• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling NSBeginAlertSheet() from outside the main thread messes up animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Calling NSBeginAlertSheet() from outside the main thread messes up animation (From: Daniel Aarno <email@hidden>)

  • Prev by Date: cocoa-java
  • Next by Date: propertyListFromXMLData deprecated Hi, In the Cocoa-Java API the propertyListFromXMLData(com.apple.cocoa.foundation.NSData) in com.apple.cocoa.foundation.NSPropertyListSerialization has been deprecated. What replacement is supposed to be used now? Thanks
  • Previous by thread: Calling NSBeginAlertSheet() from outside the main thread messes up animation
  • Next by thread: Re: Calling NSBeginAlertSheet() from outside the main thread messes up animation
  • Index(es):
    • Date
    • Thread