Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef]



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef] (From: Dave MacLachlan <email@hidden>)
 >Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef] (From: Eric Schlegel <email@hidden>)
 >Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef] (From: Nicko van Someren <email@hidden>)
 >Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef] (From: John Stiles <email@hidden>)
 >Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef] (From: Eric Schlegel <email@hidden>)
 >Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef] (From: John Stiles <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.