I was wondering if there is an easy way to “bounce” or scroll NSTextFieldwith text that is too long to display.
For instance:
-----------------------------
<-- scroll | This is a rather large pi | ..ece of text!
-----------------------------
So, in this example, the text will scroll to the end, showing the rest of the message, and then back to the beginning, where it will rest; basically providing the user with the maximum in the entire text.
-----------------------------
This is a ra.. | ther large piece of text! | --> then scroll back to beginning.
-----------------------------
The same animation can also be found on the iPhone when called, the name of the Person will scroll in this way if it is too large to fit on the display.
source
share