Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef]
Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef]
- Subject: Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef]
- From: John Turnipseed <email@hidden>
- Date: Tue, 21 Feb 2006 17:14:13 -0600
I'll second what John Stiles wrote on this subject...
I'm a recent convert to Cocoa from Carbon and I very much need an
equivalent for TransitionWindowWithOptions that works with NSWindows.
Long term, of course I'd prefer to see a more standard Cocoa version
of it, but if the Carbon call would at least work properly with
NSWindow's windowRef, then I could write my own wrapper functions.
And to be specific, I'm really most interested in the Genie and Sheet
effects working for showing/hiding NSWindows. Though I haven't tried
it yet, I understand that NSViewAnimation can do most of the effects
I need for moving and resizing them.
Presently it appears that you can show/hide an NSWindow with
TransitionWindow and a Genie effect as long as when it finishes, you
also corresponding calls makeKeyAndOrderFront or orderOut. If you
don't make those calls, subsequent calls to TransitionWindow to
reverse the effect will fail.
Further, if you do call orderOut when the hide transition finishes,
you get a quick flash of the window drawn in it's former location. If
I could figure out how to prevent the flash, it's almost a workable
short-term solution.
-=- John
________________________________________________________________________
_____
John Turnipseed | "The most likely way for the world to be
destroyed,
Mac Driver/Programmer | most experts agree, is by accident. That's
where
email@hidden | we come in; we're computer professionals.
email@hidden | We cause accidents." -- Nathaniel Borenstein
On Feb 10, 2006, at 12:45:12, John Stiles wrote:
On Feb 10, 2006, at 10:40 AM, Eric Schlegel wrote:
On Feb 10, 2006, at 8:45 AM, John Stiles wrote:
OTOH, many of the modes supported by TransitionWindow look
terrible in OS X. TransitionWindow was originally intended to let
a developer mimic the "zoom" effect used by the Finder when new
windows are opened. In OS 9 it was a perfect match. In OS X,
TransitionWindow provides a very retro "zooming squares" effect,
while the real Finder actually has a gorgeous scaling effect.
Nowadays it's been augmented with other transition types that
look OK on OS X, but they still haven't revisited the original
zoom effect yet. :| I have an open radar on this that's been idle
for a long time (years?).
Agreed, and I hope to get to this for Leopard and make
TransitionWindow use the same effect that the Finder uses.
Cool! Now all the ancient code out there still calling StopAlert
and friends will look totally awesome ;) ;)
Seriously, that is very good news and I hope it makes it into
Leopard. I expect to hear lot more Cocoa developers asking for
TransitionWindow to be compatible with [nsWindow windowRef] windows :)
_______________________________________________
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
_______________________________________________
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