• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScrollView


  • Subject: Re: NSScrollView
  • From: Enrique Zamudio <email@hidden>
  • Date: Wed, 27 Jun 2001 18:47:06 -0500
  • Organization: Nasoft

I don't think you can center it just like that.

The idea of a NSScrollView is that it lets you scroll through a view
that is larger than the scrollview that contains it.

So the scrollview always has its contentView place at the bottom left
corner.

A way to center a view in there, could be to make the contentView the
same size as the scrollView (perhaps there is a sizeToFit message there
somewhere) and then add your subview to the contentView, centering it
(you have to calculate the coordinates by hand, though).

eZL


  • Prev by Date: Re: Cocoa & Apple Event handling...
  • Next by Date: Re: Frantic and Frustrated {Additional to previous}
  • Previous by thread: Re: NSScrollView
  • Next by thread: rotating an image
  • Index(es):
    • Date
    • Thread