Re: NSScrollView
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