FROM : J Tichenor
DATE : Fri Oct 15 20:59:56 2004
>
> 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
DATE : Fri Oct 15 20:59:56 2004
>
> 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
| Related mails | Author | Date |
|---|---|---|
| J Tichenor | Oct 15, 12:38 | |
| Alex Clarke | Oct 15, 13:28 | |
| Louis C. Sacha | Oct 15, 14:58 | |
| J Tichenor | Oct 15, 20:59 |






Cocoa mail archive

