• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSScrollView's document view resizing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSScrollView's document view resizing?
      • From: Kyle Sluder <email@hidden>
References: 
 >NSScrollView's document view resizing? (From: Todd Heberlein <email@hidden>)
 >Re: NSScrollView's document view resizing? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSScrollView's document view resizing?
  • Next by Date: Re: NSScrollView's document view resizing?
  • Previous by thread: Re: NSScrollView's document view resizing?
  • Next by thread: Re: NSScrollView's document view resizing?
  • Index(es):
    • Date
    • Thread