Re: Multiple Views, one NSScrollView
Re: Multiple Views, one NSScrollView
- Subject: Re: Multiple Views, one NSScrollView
- From: Stephan Burlot <email@hidden>
- Date: Sat, 21 Jul 2007 18:41:45 +0200
Hi,
Since the contentView of a scroll view is a clip view, did you mean
the document view?
I tried to add dynamically my view to the NSScrollView, and I did get
a working result only when using setDocumentView on the NSScrollView.
Usind [[scrollView contentView] addSubView:myView] did add my view,
but I couldn't scroll it.
I'll keep searching.
Thanks,
Stephan
Le 21 juil. 07 à 03:01, John C. Randolph a écrit :
On Jul 20, 2007, at 5:39 PM, Nick Zitzmann wrote:
On Jul 20, 2007, at 5:40 PM, Stephan Burlot wrote:
Can each view be a subview of the scroll view, or is it better or
easier to add all my views to a subview of the scroll view?
Try putting all three views into one single superview, and make
that superview the content view of the scroll view.
Or just use the ScrollView's existing contentView.
-jcr
John C. Randolph,
VP, Engineering
Stealth Imaging, LLC. <email@hidden>
_______________________________________________
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