A good way to implement Safari-tab animation effect?
A good way to implement Safari-tab animation effect?
- Subject: A good way to implement Safari-tab animation effect?
- From: "Eric Lin" <email@hidden>
- Date: Mon, 1 May 2006 18:17:09 -0700
I'm referring to how when you open the first tab in Safari, the tab
bar seems to slide down from above.
I'm planning to implement the same effect as follows:
1. Create a tab view (complete with the tab bar and content view)
2. Make the tab view a subview of an NSView of the same size, and
intentionally position the tab view "too high" so the tab bar lies
outside of the top border of the parent NSView (effectively hidden
it).
3. Using NSWindow's setFrame:animation method and autoresizingMask to
slide the tab view down, gradually revealing the hidden tab.
My only concern is whether it's "bad style" (in terms of overhead) to
introduce the parent NSView for no purpose other than hiding the tab
view, assuming there may be lots of windows open in my application.
Thanks,
Eric
_______________________________________________
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