Re: Scroll detection in NSTableView
Re: Scroll detection in NSTableView
- Subject: Re: Scroll detection in NSTableView
- From: Robert Miller <email@hidden>
- Date: Thu, 29 Aug 2002 10:19:14 -0400
Thanks this does work. I tried this once before and it didn't work for
some reason but, this time it did. I think I was using the wrong
notification name. duh!
On Thursday, August 29, 2002, at 12:58 AM, Dan Wood wrote:
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.