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
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
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,