Re: Flipping a window, Dashboard-style
Re: Flipping a window, Dashboard-style
- Subject: Re: Flipping a window, Dashboard-style
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 9 Aug 2005 16:33:48 -0700
On Aug 9, 2005, at 4:26 PM, Larry Gerndt wrote:
Dashboard widget windows can be made to flip over, showing their
"back side" which contains controls that affect the behavior of
widget. My colleagues and I think this is a great idea and we
intend to implement this is our Cocoa app for some of our windows.
Some kind souls out there have already provided sample projects
which come very close to what we need.
Robert Pointon's "Core Image NSView Transitions", located at
http://www.macs.hw.ac.uk/~rpointon/osx/coreimage.html,
provides a way of animating an NSTabView using a variety of
transition effects. However this does not attempt to flip an
entire window with titlebar and all. It only flips views of the
tab view, and there must be a margin of sufficient size between the
tab view and window's titlebar because some transition types
actually draw above the original top edge of the view (for example
the cube and flip transitions).
Uli Kusterer's "Window Flipper" example, located at
http://www.zathras.de/angelweb/sourcecode.htm#WindowFlipper
*does* flip a window, but unfortunately, the method he used results
(NSAffineTransforms) results in poor appearance and performance.
After spending a few hours looking at these examples, I have my
doubts whether there is any clean way of accomplishing an entire
window flip using CoreImage filters (for excellent appearance and
performance) as Robert has done, but I could be wrong, and if
someone can think of a good way, I would be highly indebted to
them. Thanks in advance.
Well, I'd be inclined to use a QC view, and put it in a borderless
window. Stick a snapshot of the window on a sprite, rotate it away
from the viewer, change it to the reverse side's image, and rotate it
back into view. Or, just use two sprites. This would be using the
GPU, but not a CoreImage filter per se.
I can send you a project that runs a QCView in a borderless window.
You could drop any composition into it in place of my rotating cube.
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden