> You need to post your code. I'll put my "main" code at the end of this email.
> > It sounds like you've overridden -drawRect: to draw custom contents. > The view's frame determines how the scroll view behaves; if you're > just drawing all over the place in -drawRect: without properly calling > -setFrame:, you need to stop that. I'm not quite sure if I'm over riding -drawRect:, but it's possible that I have. Hopefully my code will see if I have. AppController.m @interface AppController : NSObject { IBOutlet NSView *subView; IBOutlet NSScrollView *mainView; } @end AppController.h for (NSInteger i = 0; i < 100; i++) { NSRect location = NSMakeRect(50, (i*120 + (i+9)*10), 400, 22); NSTextField *text1 = [[NSTextField alloc] initWithFrame:location]; [subView addSubview:text1]; [subView setAutoresizesSubviews:YES]; } _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com