• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NEWBIE]: Scrolling windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >[NEWBIE]: Scrolling windows (From: J Tichenor <email@hidden>)
 >Re: [NEWBIE]: Scrolling windows (From: "Louis C. Sacha" <email@hidden>)

  • Prev by Date: Re: bug in NSPropertyListSerialization +dataFromPropertyList:format:errorDescription:
  • Next by Date: Re: Obtaining port from NSSocketPort
  • Previous by thread: Re: [NEWBIE]: Scrolling windows
  • Next by thread: NSWorkspace's isFilePackageAtPath: returns always NO
  • Index(es):
    • Date
    • Thread