• 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: Multiple Views, one NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Multiple Views, one NSScrollView (From: Stephan Burlot <email@hidden>)
 >Re: Multiple Views, one NSScrollView (From: Nick Zitzmann <email@hidden>)
 >Re: Multiple Views, one NSScrollView (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: How to properly dealloc NSDictionary instance
  • Next by Date: Re: Multiple Views, one NSScrollView
  • Previous by thread: Re: Multiple Views, one NSScrollView
  • Next by thread: Re: Multiple Views, one NSScrollView
  • Index(es):
    • Date
    • Thread