• 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
Dynamic UI with scroll view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamic UI with scroll view


  • Subject: Dynamic UI with scroll view
  • From: Chase Meadors <email@hidden>
  • Date: Mon, 27 Jul 2009 19:23:59 -0500

I'm writing an app where the number of controls in the UI is dependent on the amount of information to be entered. The scroll view programming guide is not helping either. The only experience I've had with scroll views is the ones that come with other views in IB.

If I'm thinking correctly, I can build a view in code (with copying some generic text fields/popup with correct settings in the nib) then set the documentView of the scroll view with this newly created view. But this: (the scroll view is an independent scroll view made in IB)

NSLog(@"%@", [scrollView documentView]); //outputs (null)

[scrollView setDocumentView:[[NSView alloc] initWithFrame:NSMakeRect(0, 0, 500, 500)]];

NSLog(@"%@", [scrollView documentView]); //outputs (null) again

Also, I'm not too clear on how the frame of this view should work. Should I just make it whatever height I need for all the controls and the scroll view will scroll it?

Thanks for any help.
_______________________________________________

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


  • Follow-Ups:
    • Re: Dynamic UI with scroll view
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: How to display the information in the columns of the table view?
  • Next by Date: Re: NSString -componentsSeparatedByString: line break
  • Previous by thread: Re: nil there not here
  • Next by thread: Re: Dynamic UI with scroll view
  • Index(es):
    • Date
    • Thread