Re: Scroll detection in NSTableView
Re: Scroll detection in NSTableView
- Subject: Re: Scroll detection in NSTableView
- From: Dan Wood <email@hidden>
- Date: Wed, 28 Aug 2002 21:58:01 -0700
This ought to do the trick.... replace the table and method as
appropriate...
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(prepareForNewDisplay:)
name:NSViewBoundsDidChangeNotification
object:[[oTable enclosingScrollView] contentView]]; // table is
scrolled
On Wednesday, August 28, 2002, at 01:23 PM, Robert Miller wrote:
Hello,
Can someone tell me how to go about detecting when a scroll has or is
about to happen in an NSTableView. I've tried getting its
enclosingScrollView's contentView and setting that to post bounds
resized notifications but , that doesn't seem to work. No notification
gets sent to my observing object when the table is scrolled ? Is there
an easy way to determine when a table is being scrolled ?
Thanks for any info in advance
Regards,
Bob M.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X:
http://www.karelia.com/watson/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.