On Dec 12, 2012, at 9:31 AM, Kyle Sluder <k...@ksluder.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to