Re: NSScrollView: is setting the document view size supported?
Re: NSScrollView: is setting the document view size supported?
- Subject: Re: NSScrollView: is setting the document view size supported?
- From: Andy Lee <email@hidden>
- Date: Mon, 09 Feb 2009 23:05:49 -0500
On Feb 9, 2009, at 9:26 PM, Eric Gorr wrote:
On Feb 9, 2009, at 9:07 PM, Luke Evans wrote:
My experiments suggest that simply setting the current document
view in an NSScrollView to a new size results in the unexpected
behaviour (to me) of having all the content of the document view be
scaled up or down to fit the size of the NSClipView.
I am not certain exactly what you are doing, but I have been able to
successfully do this.
Works for me too. I hooked up a button to do the following and it
works just fine.
NSView *docView = [_scrollView documentView];
NSSize oldFrameSize = [docView frame].size;
[docView setFrameSize:NSMakeSize(oldFrameSize.width + 10.0,
oldFrameSize.height + 10.0)];
Are you sure you're not accidentally doing something with the clip view?
--Andy
_______________________________________________
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