CATransition for whole windows?
CATransition can be used to animate views, but is there a way to animate complete windows (NSWindow's or NSPanel's)? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CATransition for whole windows?
On Nov 23, 2009, at 9:32 AM, PCWiz pcwiz.supp...@gmail.com wrote: CATransition can be used to animate views, but is there a way to animate complete windows (NSWindow's or NSPanel's)? It depends on what you mean. You have the animator proxy, of course, which can do opacity and frame changes. Changes to subviews of the window's content view can be animated in Core Animation just like any other. Windows themselves can't be Done with Core Animation, but NSAnimation would work for your purposes. Though I don't see what you could want to do that the animator proxy doesn't already take care of for you. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CATransition for whole windows?
On Nov 23, 2009, at 9:32 AM, PCWiz wrote: CATransition can be used to animate views, but is there a way to animate complete windows (NSWindow's or NSPanel's)? If you're just talking about animating movement/resize, you can do that with -setFrame:display:animate: or using the NSAnimatablePropertyContainer protocol that NSWindow implements. If you mean funky distortion/transform effects on windows, I don't believe there is any public API. Internally the WindowServer supports arbitrary mesh deformations for windows, but the API for that is private; it's only used for things like the Dock's genie effect. —Jens___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CATransition for whole windows?
On Mon, 23 Nov 2009 10:32:24 -0700, PCWiz pcwiz.supp...@gmail.com said: CATransition can be used to animate views, but is there a way to animate complete windows (NSWindow's or NSPanel's)? Animate *what* about a complete window? If you mean what's *in* the window, that *is* a view (the window's contentView). If you mean make the window dance around the screen somehow, please don't. ) m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CATransition for whole windows?
What I had in mind was a window vanishing effect for when the window is closed (for example a fade out is easy to do with [[window animator] setAlphaValue:0.0];) but something slightly more complex, such as the private suckEffect transition that CATransition offers. On 2009-11-23, at 11:02 AM, Matt Neuburg wrote: On Mon, 23 Nov 2009 10:32:24 -0700, PCWiz pcwiz.supp...@gmail.com said: CATransition can be used to animate views, but is there a way to animate complete windows (NSWindow's or NSPanel's)? Animate *what* about a complete window? If you mean what's *in* the window, that *is* a view (the window's contentView). If you mean make the window dance around the screen somehow, please don't. ) m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CATransition for whole windows?
On Nov 23, 2009, at 10:33 AM, PCWiz wrote: What I had in mind was a window vanishing effect for when the window is closed (for example a fade out is easy to do with [[window animator] setAlphaValue:0.0];) but something slightly more complex, such as the private suckEffect transition that CATransition offers. Yeah, private API only. File a bug report to request that it be made public; there are all kinds of cool eye-candy things that API could be used for — flipping windows over, perspective effects, crumpling them up, curling their corners like a document icon... —Jens___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: CATransition for whole windows?
On Nov 23, 2009, at 10:33 AM, PCWiz wrote: What I had in mind was a window vanishing effect for when the window is closed (for example a fade out is easy to do with [[window animator] setAlphaValue:0.0];) but something slightly more complex, such as the private suckEffect transition that CATransition offers. On 2009-11-23, at 11:02 AM, Matt Neuburg wrote: On Mon, 23 Nov 2009 10:32:24 -0700, PCWiz pcwiz.supp...@gmail.com said: CATransition can be used to animate views, but is there a way to animate complete windows (NSWindow's or NSPanel's)? Animate *what* about a complete window? If you mean what's *in* the window, that *is* a view (the window's contentView). If you mean make the window dance around the screen somehow, please don't. ) m. For those interested I've posted a view simple quick and dirty Window animation that shrinks the window down to effectively zero, and can then expand it back to its original state.Use the View menu Flip item to see. http://www.trilithon.com/download/FlipWindow.zip Cheers, . . . . . . . .Henry ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com