Re: scroll automatically if the text is too long
Re: scroll automatically if the text is too long
- Subject: Re: scroll automatically if the text is too long
- From: "I. Savant" <email@hidden>
- Date: Mon, 24 Aug 2009 09:14:48 -0400
On Mon, Aug 24, 2009 at 3:59 AM, Massimiliano Gargani <email@hidden>
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 (email@hidden)
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:
This email sent to email@hidden