Re: Synchronized scrollbars (NSScrollView and NSBrowser)
Re: Synchronized scrollbars (NSScrollView and NSBrowser)
- Subject: Re: Synchronized scrollbars (NSScrollView and NSBrowser)
- From: Wain Glaister <email@hidden>
- Date: Sun, 12 Aug 2007 22:12:15 +0100
Hi,
Presumably you have something in your NSScrollView to be seen and
scrolled?
Well, the NSBrowser is the same as that content! You may not have
noticed this if you added the NSBrowser in IB, but it is actually in
an NSScrollView itself.
So you do have two scroll views to synchronise. Look at the NSView '-
(NSScrollView *)enclosingScrollView' method.
Wain
On 12 Aug 2007, at 22:00, Marcus Karlsson wrote:
Hi.
I have a NSScrollView and a NSBrowser. Is it possible to
synchronize their horisontal scrollbars so that they will follow
each other's movements when the user interacts with one of them? I
found an article ( http://developer.apple.com/documentation/Cocoa/
Conceptual/NSScrollViewGuide/Articles/SynchroScroll.html ), but it
requires two NSScrollViews.
Marcus
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden