Re: NSScrollView Not Updating
Re: NSScrollView Not Updating
- Subject: Re: NSScrollView Not Updating
- From: Kyle Sluder <email@hidden>
- Date: Sat, 25 Jul 2009 19:41:07 -0700
On Sat, Jul 25, 2009 at 7:30 PM, Pierce
Freeman<email@hidden> 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@hidden)
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:
This email sent to email@hidden