Re: NSScrollView's document view resizing?
Re: NSScrollView's document view resizing?
- Subject: Re: NSScrollView's document view resizing?
- From: Todd Heberlein <email@hidden>
- Date: Wed, 12 Dec 2012 11:44:03 -0800
On Dec 12, 2012, at 9:31 AM, Kyle Sluder <email@hidden> wrote:
> What's the autoresizing mask on your document view? Even though your document view is the subview of a scroll view, it still gets -resizeWithOldSuperviewSize: as normal. If your autoresizing mask had the width- or height-sizable bits set, it will grow with the superview.
Thanks!
- (void)awakeFromNib
{
[self setAutoresizingMask:NSViewNotSizable];
}
did the trick.
For some reason, trying to set the mask in -initWithFrame: did not work.
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