NSScrollView notification

  • Does the NSScrollView send any notification of anything of the sort
    when it starts scrolling and when it ends?

    I have a view in a scrollview that needs to do something special when
    its scrollview has stopped scrolling. how can i accomplish this?

    thanks

    AC
  • Use NSViewFrameDidChangeNotification

    - Apparao.

    On 24-Aug-07, at 9:20 PM, Alexander Cohen wrote:

    > Does the NSScrollView send any notification of anything of the sort
    > when it starts scrolling and when it ends?
    >
    > I have a view in a scrollview that needs to do something special
    > when its scrollview has stopped scrolling. how can i accomplish this?
    >
    > thanks
    >
    > AC
    >
  • On 24.08.2007, at 17:50, Alexander Cohen wrote:
    > Does the NSScrollView send any notification of anything of the sort
    > when it starts scrolling and when it ends?
    >
    > I have a view in a scrollview that needs to do something special
    > when its scrollview has stopped scrolling. how can i accomplish this?

      There's been some postings on this list about how to do a "gutter
    view" showing line numbers, and there's a page on that topic at the
    http://www.cocoadev.com Wiki. You may wanna look there. Essentially,
    they install an event listening to the enclosingScrollView's
    NSClipView, after telling it to send these notifications.

      You may also want to look into NSRulerView and the likes, in many
    cases that makes for a cleaner design, and avoids a proliferation of
    notifications.

    Cheers,
    -- M. Uli Kusterer
    http://www.zathras.de
previous month august 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