One Quickie

Scrolling an NSScrollView programatically (NSScrollView->General)
Sometimes you need to scroll a scrollview outside of user control. You first have to tell the content view (Which is an NSClipView) to scroll to a point, and then tell the scrollview to adjust its scrollbar position:
    [[scrollView contentView] scrollToPoint: pointToScrollTo];
    [scrollView reflectScrolledClipView: [scrollView contentView]];

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