On Mon, Aug 24, 2009 at 3:59 AM, Massimiliano Gargani <m...@ircd.it> wrote:

something like itunes when song title is too long and start to scroll horizontally.

With respect, I don't believe any of the responses so far have noticed the above line. He appears to be asking for the animated scrolling in iTunes' track title display.

In short, there is no automatic way to do this. The "scrolls" feature of NSTextField/Cell is a good start, though. Subclass and mix it with some Leopard animation and you're there. Hint: whatever mechanism (for you to read and discover) controls the scrolling can be given an animatable property, which you can call.

The trick is, rather than animating distance over some given time, you'll need to spread the time over a given distance (otherwise long strings will scroll faster than short ones).

--
I.S.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to