Re: [NEWBIE]: Scrolling windows
Re: [NEWBIE]: Scrolling windows
- Subject: Re: [NEWBIE]: Scrolling windows
- From: J Tichenor <email@hidden>
- Date: Fri, 15 Oct 2004 19:59:56 +0100
First, the NSClipView is part of the NSScrollView, and is taken care
of automatically so you don't need to make your own. Also, the view
that is scrolled in a NSScrollView is the "document view" and instead
of adding it as a subview, you use the NSScrollView setDocumentView:
instance method to set it.
90% of the problem solved right there. And way easier than I thought.
Also, if I remember correctly, using a NSScrollView instance as the
content view of a window may cause problems under 10.2 (overlap of the
scroller arrow and window resize widget) unless both scrollers are
always displayed. If you are supporting 10.2, you'll probably want to
specifically check this and make sure it's working okay.
I know that bug and for me 10.2 is not an issue.
Hope that helps,
Tremendously, thank you! The only thing I still need to figure out is
how to refresh the view when the user has scrolled. Thought it might be
a delegate method out NSScroller but I can't see anything. Any hints?
And thank you!
James
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden