> On 18 Dec 2015, at 06:34, Graham Cox <graham....@bigpond.com> wrote:
> 
> If it happened accidentally it was most likely due to setting up a situation 
> that caused extreme low performance 

No, it wasn’t. 


> You could just gradually add characters from the original string to a 
> ‘display’ string using a timer and ask a standard layout manager/text view 
> etc. to re-lay and draw the display string.

I’m pretty sure I didn’t use a timer (see below).


> Using a custom NSLayoutManager is another way to go - it gives you the 
> opportunity to override almost any aspect of layout.


This sounds more likely. I was definitely playing around with NSLayoutManager 
at some point. I’ll look into that, but if anyone has any ideas how one would 
get the effect I’m after using NSLayoutManager I’d be grateful for the heads up.


> If you need less complex layout features, you could also do it using Core 
> Text.

Definitely definitely didn’t get into that!


> But just incremening a string and redrawing it in a textview is really by far 
> the simplest approach.
> 

Are you referring back to using a timer again? That might be one way to go. I’m 
pretty sure when I  “discovered” this effect, I was able to manipulate the 
timing (because at first I thought I’d use it, but I wanted it faster), but I’m 
pretty sure I didn’t know how to use timers in those days. Still, I’ll look 
again into this approach.

Thanks for all your insights, Graham. Much appreciated!


Best



Phil


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to