• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: output string like a teleprinter (NSTextView)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >output string like a teleprinter (NSTextView) (From: sqwarqDev <email@hidden>)
 >Re: output string like a teleprinter (NSTextView) (From: Graham Cox <email@hidden>)
 >Re: output string like a teleprinter (NSTextView) (From: sqwarqDev <email@hidden>)

  • Prev by Date: Re: output string like a teleprinter (NSTextView)
  • Next by Date: Re: CGContextClipToRects: invalid context 0x0.
  • Previous by thread: Re: output string like a teleprinter (NSTextView)
  • Next by thread: Window position updates on demand?
  • Index(es):
    • Date
    • Thread