One Quickie

Scrolling to the end of a textview (NSTextView->General)
    NSRange range;
    range = NSMakeRange ([[textView string] length], 0);

    [textView scrollRangeToVisible: range];
I've heard that scrollRangeToVisible is O(N) for the length of the text. So be on the lookout if you have lots of text involved.

borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book