Re: Generating Scrolling Text
Re: Generating Scrolling Text
- Subject: Re: Generating Scrolling Text
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 26 Dec 2005 00:12:49 -0800
I've done this kind of thing before by just using a timer and sending
scrollToPoint: messages to a scrollview with hidden scrollers, back
in the Cheetah timeframe. Today, I'd probably use a Quartz Composer
view and make it as spiffy or as simple as you like.
-jcr
On Dec 20, 2005, at 1:52 PM, Philip Dow wrote:
I'm looking to generate some scrolling text in a view. No scroll
bars are involved. Rather, I'd like to begin the text at the bottom
of the view and scroll it upwards, eventually fading it out at the
top and restarting when finished. Basically what you see in the
iTunes about box.
What's the best way to do this? I'm thinking of using a custom
nsview. I would render my attributed string into an instance
variable nsimage either at init or some other point prior to
drawing. A timer would fire calling a method to change the
dimensions of a rect which I would then use as the source rect for
compositing the image in the view's drawInRect method. The sounds
pretty good to me, but I don't know if it's the best or most
efficient way. Is there a better?
Plus, just to be sure, I should be able to draw my attributed
string into the image as long as I lock focus on it, right?
-Phil
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
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