• 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, centering document view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSScrollView, centering document view? (From: Todd Heberlein <email@hidden>)

  • Prev by Date: NSScrollView, centering document view?
  • Next by Date: Initializing NSWindow with Carbon window
  • Previous by thread: NSScrollView, centering document view?
  • Next by thread: Help Book authoring tool?
  • Index(es):
    • Date
    • Thread