NSScrollView'ımın şu anda kayıyor olup olmadığını nasıl anlarım? iOS'ta delege kullanabilirim, ancak çok fazla arama yapmaya rağmen Mac'te bunu yapmanın bir yolunu bulamıyorum.NSScrollView öğesinin şu anda kaydırılıyor olup olmadığını nasıl öğrenirim?
Şimdiden teşekkürler! NSScrollViewWillStartLiveScrollNotification
da var OS X 10.9 itibariyle
NSView *contentView = [scrollview contentView];
[contentView setPostsBoundsChangedNotifications:YES];
// a register for those notifications on the content view.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(boundDidChange:)
name:NSViewBoundsDidChangeNotification
object:contentView];
altında bildirim yöntemi
- (void)boundDidChange:(NSNotification *)notification {
// get the changed content view from the notification
NSClipView *changedContentView=[notification object];
}