Re: Origin of scroll view
Re: Origin of scroll view
- Subject: Re: Origin of scroll view
- From: Mike Shields <email@hidden>
- Date: Wed, 9 Jul 2003 01:48:49 -0600
I ended up flipping the document view of the scroll view.
@interface DRFlippedView : NSView
- (BOOL) isFlipped;
@end
@implementation DRFlippedView
- (BOOL) isFlipped
{
return YES;
}
@end
This custom view, set up in IB to be a DRFlippedView, and made the
documentView of the scroll view solved all of the problems I was having
with scrolling. Originally I had to implement some nasty, nasty hacks
to get it to do what I wanted it to do. The nice thing about flipping
the view is that once you think about it, this is exactly what an
NSTextView does.
Mike
_______________________________________________
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.