FROM : Ryan Z. Hale
DATE : Mon Nov 18 20:43:01 2002
try www.cocoadevcentral.com
They have what you're looking for.
On Monday, November 18, 2002, at 07:08 PM, Brian Bergstrand wrote:
> Anyone have any examples of auto-scrolling text using NSTextView? Kind
> of like what you see in about boxes all of the time.
>
> Basically you'd have to get the size of the string as drawn on screen
> in the current font, figure out the pagination and wrapping in the
> view and then calculate how much text is being displayed and how much
> needs to be displayed.
>
> That's a lot easier said than done, and the online doc is not much
> help. Plus, how do you restart the display from the beginning of the
> text, but about two thirds of the way down in the view (so you get the
> effect of continuously scrolling text)?
>
> What I really want is something just like PGP 8.0 about box.
>
> Thanks for any pointers.
>
> Brian Bergstrand
> <http://www.classicalguitar.net/brian/> PGP Key ID: 0xB6C7B6A2
> Any sufficiently advanced technology is indistinguishable from magic.
> - Arthur C. Clarke, "Technology and the Future"
>
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
DATE : Mon Nov 18 20:43:01 2002
try www.cocoadevcentral.com
They have what you're looking for.
On Monday, November 18, 2002, at 07:08 PM, Brian Bergstrand wrote:
> Anyone have any examples of auto-scrolling text using NSTextView? Kind
> of like what you see in about boxes all of the time.
>
> Basically you'd have to get the size of the string as drawn on screen
> in the current font, figure out the pagination and wrapping in the
> view and then calculate how much text is being displayed and how much
> needs to be displayed.
>
> That's a lot easier said than done, and the online doc is not much
> help. Plus, how do you restart the display from the beginning of the
> text, but about two thirds of the way down in the view (so you get the
> effect of continuously scrolling text)?
>
> What I really want is something just like PGP 8.0 about box.
>
> Thanks for any pointers.
>
> Brian Bergstrand
> <http://www.classicalguitar.net/brian/> PGP Key ID: 0xB6C7B6A2
> Any sufficiently advanced technology is indistinguishable from magic.
> - Arthur C. Clarke, "Technology and the Future"
>
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
| Related mails | Author | Date |
|---|---|---|
| Brian Bergstrand | Nov 18, 17:12 | |
| Michael Mulligan | Nov 18, 18:04 | |
| Ryan Z. Hale | Nov 18, 20:43 | |
| Ryan Z. Hale | Nov 18, 20:44 | |
| Brian Bergstrand | Nov 19, 10:45 | |
| Cameron Hayne | Nov 19, 11:10 | |
| David Sinclair | Nov 19, 11:58 | |
| Andreas Mayer | Nov 19, 13:51 |






Cocoa mail archive

