Re: How do I subclass the NSScrollView of PDFView?
Re: How do I subclass the NSScrollView of PDFView?
- Subject: Re: How do I subclass the NSScrollView of PDFView?
- From: John Calhoun <email@hidden>
- Date: Fri, 5 Jan 2007 19:22:51 -0800
On Jan 5, 2007, at 6:51 PM, Eric Badros wrote:
I'm trying to replace the NSScrollViews that control scrolling for two
PDFView subclass instances so that I can synchronize scrolling.
Unlike other Cocoa views, PDFView creates it's own internal
NSScrollView. As a result there is a subview even within the scroll
view that is responsible for rendering the PDF content.
You can access the innermost view with:
- (NSView *) [PDFView documentView];
You can use -[enclosingScrollView] from that point. I've done this
successfully to change the NSScroller to a mini control....
john calhoun—_______________________________________________
Cocoa-dev mailing list (email@hidden)
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