Using NSScrollView with self clipping views?

  • I have an NSOpenGLView that clips itself. I'm trying to implement
    scroll bars for the view, and I'm not having much success. I can't
    seem to get just NSScrollers by themselves to actually work. I add a
    custom view in IB, change the class of the custom view to NSScroller,
    and set the views to enabled, and they simply don't work. The
    NSScrollers don't draw the scroll bar or the scroll buttons. I'm also
    unable to connect the actions of the scrollers to my view in order to
    control scrolling.

    That said, is there any way, either using an NSScrollView or
    NSScrollers to scroll a view that performs it's own clipping?

    Thanks,
    Colin
  • Fixed my issue with using custom NSScrollers. I was just being dumb
    and enabling my scroller in my view's init method instead of
    awakeFromNib.

    Thanks,
    Colin

    On Oct 7, 2007, at 7:38 PM, Colin Cornaby wrote:

    > I have an NSOpenGLView that clips itself. I'm trying to implement
    > scroll bars for the view, and I'm not having much success. I can't
    > seem to get just NSScrollers by themselves to actually work. I add a
    > custom view in IB, change the class of the custom view to
    > NSScroller, and set the views to enabled, and they simply don't
    > work. The NSScrollers don't draw the scroll bar or the scroll
    > buttons. I'm also unable to connect the actions of the scrollers to
    > my view in order to control scrolling.
    >
    > That said, is there any way, either using an NSScrollView or
    > NSScrollers to scroll a view that performs it's own clipping?
    >
    > Thanks,
    > Colin
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today