Re: output string like a teleprinter (NSTextView)
Re: output string like a teleprinter (NSTextView)
- Subject: Re: output string like a teleprinter (NSTextView)
- From: Graham Cox <email@hidden>
- Date: Fri, 18 Dec 2015 21:19:01 +1100
> On 18 Dec 2015, at 8:37 PM, sqwarqDev <email@hidden> wrote:
>
> I’m pretty sure I didn’t use a timer (see below).
>
I wasn’t really trying to second-guess how you might have done this in the past; more, I was suggesting how you could do it without having “discovered” this effect previously. It definitely isn’t a standard behaviour of NSLayoutManager, and going that route seems a fairly complex solution to what is a pretty easy challenge. There’s nothing wrong with using a timer for this- it’s safe, easy, will cooperate with the rest of your app well and doesn’t even require any subclassing, though you might want to wrap the functionality up into a view or other class that you can give a string and the teleprinter effect just magically happens.
—Graham
_______________________________________________
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