Re: Sliding views
Re: Sliding views
- Subject: Re: Sliding views
- From: John Randolph <email@hidden>
- Date: Mon, 2 Feb 2004 14:10:34 -0800
On Feb 1, 2004, at 10:11 AM, Peter Jaros wrote:
I've got a row of views I'd like to slide around during a
drag-and-drop operation, ` la toolbar icons or Safari's Bookmark Bar
buttons. Is there any sample code available for this? Or does anyone
know the basic mathematical principles used to dictate the sliding
behavior?
If you look at the "Animated Slider" sample at
http://developer.apple.com/samplecode/Sample_Code/Cocoa/
AnimatedSlider.htm
You'll see one implementation of an ease in/ease out function. Michael
Johnson at Pixar pointed me to a web page some time ago that had a
bunch of different kinds of motion simulation functions, but I'm afraid
I have no idea where it was..
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.