Re: NSScrollView, centering document view?
Re: NSScrollView, centering document view?
- Subject: Re: NSScrollView, centering document view?
- From: Quincey Morris <email@hidden>
- Date: Sat, 29 Jan 2011 23:14:54 -0800
On Jan 29, 2011, at 21:38, Todd Heberlein wrote:
> Is there an easy way to do this? Or should I make sure my document view is always at least as large as the content view and then just center my drawing inside my document view?
I'd recommend the latter. It's not that hard, and it solves some problems that crop if the document view is too small. (Standard rulers don't look quite right in that case, and marquee-select is much harder to implement if there's part of the clip view you can't actually draw on.)
_______________________________________________
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