Re: NSScrollView Not Updating
Re: NSScrollView Not Updating
- Subject: Re: NSScrollView Not Updating
- From: Kyle Sluder <email@hidden>
- Date: Sat, 25 Jul 2009 20:11:48 -0700
On Sat, Jul 25, 2009 at 7:59 PM, Pierce
Freeman<email@hidden> wrote:
> 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.
If you can't answer this question, you need to cover some basic
fundamentals. "Did you override -drawRect:" is a very simple question
that you can answer by simply looking at what code you've written. If
you have written a subclass of NSView and implemented the -drawRect:
method, and this is the view you're asking about, the answer is yes.
Otherwise, it is no.
> [subView addSubview:text1];
When you add a subview to a superview, it doesn't resize the
superview. NSScrollView has no idea about the contents of its
document view's subviews, it only cares about its document view's
size. Since it never changes, there's nothing for it to scroll.
I recommend first going over some Cocoa fundamentals again. Then move
on to the View Programming Guide.
--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