• 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
NSScrollView's document view resizing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSScrollView's document view resizing?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Cocoaheads Lake Forest Meets Tonight (really, this time)
  • Next by Date: Re: NSScrollView's document view resizing?
  • Previous by thread: Cocoaheads Lake Forest Meets Tonight (really, this time)
  • Next by thread: Re: NSScrollView's document view resizing?
  • Index(es):
    • Date
    • Thread