Re: how to write desktop annimation?
Re: how to write desktop annimation?
- Subject: Re: how to write desktop annimation?
- From: Andrew Farmer <email@hidden>
- Date: Fri, 22 Dec 2006 18:43:12 -0800
On 23 Dec 06, at 02:24, Tiger x86 wrote:
For I want to write an animation ,which has been realized at the
virtuedesktops
It is open source,and I have tried to trace down its code to find
out how to create the desktops switch annimation,such as cube
effort,but it seems very difficult to get the switch code,
Can anyone help me?becanse the code for the software is open,dont
worry about the copyright,we are just discussing some technical
issues
here is the source
http://trac.virtuedesktops.info/browser/trunk/Source
You can't create new transitions, if that's what you're asking. The
transitions supported by Virtue (and similar applications) are built
into WindowServer; there is no way to extend them without access to a
lot of Apple's code.
If you're just interested in _using_ existing transitions, you
probably want to take a look at [1] which contains the "interesting"
bit of code you're probably looking for. NOTE WELL that this will
probably break with OS revisions - particularly with Leopard, as
Apple's introducing Spaces, which is supposed to do a lot of very
similar things. Also, using desktop transitions in your own code may
very well break if the user is already using a desktop manager. Make
sure to test your program thoroughly!
(I do not have access to Leopard development seeds. No NDA breakage
today.)
[1]: http://trac.virtuedesktops.info/browser/trunk/Source/Peony/
PNDesktop.m
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden