Re: Dynamic UI with scroll view

2009-07-28 Thread Fritz Anderson
On 27 Jul 2009, at 7:23 PM, Chase Meadors wrote: NSLog(@"%@", [scrollView documentView]); //outputs (null) [scrollView setDocumentView:[[NSView alloc] initWithFrame:NSMakeRect(0, 0, 500, 500)]]; NSLog(@"%@", [scrollView documentView]); //outputs (null) again Have you verified that scrollV

Dynamic UI with scroll view

2009-07-28 Thread Erik Buck
NSLog(@"%@", [scrollView documentView]); //outputs (null) What does NSLog(@"%@", scrollView ); tell you ? // the following is a memory leak if you are not using garbage collection [scrollView setDocumentView:[[NSView alloc]  initWithFrame:NSMakeRect(0, 0, 500, 500)]]; Try [scrollView setDocume

Dynamic UI with scroll view

2009-07-27 Thread Chase Meadors
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,