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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to