Dynamic UI with scroll view
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