• 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: scrollToPoint vs scrollRectToVisible
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrollToPoint vs scrollRectToVisible


  • Subject: Re: scrollToPoint vs scrollRectToVisible
  • From: Allan Odgaard <email@hidden>
  • Date: Wed, 22 Sep 2004 17:50:54 +0200

On 22. Sep 2004, at 8:19, Tim Conkling wrote:

This fixed my problem. However, I don't understand why it worked. Apple's docs on scrollRectToVisible: say that the method "Scrolls the receiver’s closest ancestor NSClipView the minimum distance needed so aRect in the receiver becomes visible in the NSClipView." This sounds to me like it does exactly what my original code was doing. What am I missing here?

scrollRectToVisible: does something like:

 1) scrollRect:by:
 2) setBoundsOrigin:
 3) setNeedsDisplayInRect:
 4) reflectScrolledClipView:

The method you called in NSClipView probably only does #2.
--
http://macromates.com/ ::: TextMate, OS X text editor
http://macromates.com/sigpipe/ ::: Personal weblog about programming


_______________________________________________
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: 
 >scrollToPoint vs scrollRectToVisible (From: Tim Conkling <email@hidden>)

  • Prev by Date: Re: NSProgressIndicator color
  • Next by Date: RE: Deployment Application will not start (solved)
  • Previous by thread: scrollToPoint vs scrollRectToVisible
  • Next by thread: Re: Images in custom IB palette
  • Index(es):
    • Date
    • Thread