On Sat, Jul 25, 2009 at 7:30 PM, Pierce Freeman<[email protected]> wrote: > I am drawing elements dynamically to the screen, and attempting to put them > in a NSScrollView. However, when I add them to the view inside the > NSScrollView, it doesn't seem as if the scroll view knows that there is more > contents. The elements simply go off of the top of the window, and it > doesn't show any scroll bars which tells me that it doesn't think that there > is any more elements. Could anyone tell me why this is happening, because I > just can't figure it out.
You need to post your code. 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. --Kyle Sluder _______________________________________________ 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]
