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 (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