NSScrollView's document view resizing?
NSScrollView's document view resizing?
- Subject: NSScrollView's document view resizing?
- From: Todd Heberlein <email@hidden>
- Date: Wed, 12 Dec 2012 09:23:06 -0800
Very basic question:
When I have an NSScrollView, when I resize the window (which resizes the NSScrollView), the NSScrollView's documentView (my NSView subclass) gets resized.
I didn't expect that to happen. I thought the documentView's size would remain constant and the scrollbars would change to reflect the difference between the contentView and the DocumentView's sizes.
I've overridden the
- (void)setFrameSize:(NSSize)newSize
method and just don't send the newSize to the superclass.
Is this the right or wrong way to keep my NSVIew subclass's size constant? Am I violating some Cocoa pattern doing it this way?
Thanks,
Todd
_______________________________________________
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