How to center a custom NSView in a NSScrollView
How to center a custom NSView in a NSScrollView
- Subject: How to center a custom NSView in a NSScrollView
- From: Meik Schuetz <email@hidden>
- Date: Tue, 13 Jan 2009 14:09:35 +0000
Dear all,
I've already tried with a custom NSClipView, as explained here:
http://www.bergdesign.com/missing_cocoa_docs/nsclipview.html
I also tried setting the height/width of the custom NSView to the size
of the NSScrollView, but somehow I do not get it to work correctly.
The question is, how can I center a custom NSView in a NSScrollView,
if the visible width and/or height is greater than the fixed size of
the NSScrollView?
Thanks a lot for any hint.
Best regards
Meik
_______________________________________________
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