• 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
SynchroScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SynchroScrollView


  • Subject: SynchroScrollView
  • From: John Stiles <email@hidden>
  • Date: Mon, 21 Apr 2008 16:36:50 -0700

Has anyone gotten this example to work in Leopard?
http://developer.apple.com/documentation/Cocoa/Conceptual/NSScrollViewGuide/Articles/SynchroScroll.html


I just tried it and I'm having terrible luck. The view is just blanking itself out immediately. I can get it to sort-of work if I replace -scrollToPoint: with calling -scrollRectToVisible: on the document, but it seems to screw up sometimes and go to the wrong location. It's really weird.

My use case is fairly simple—I just want line numbers to the left of a text view—and the code is basically unchanged (although I've tried tweaking it a few times, with mixed results, never 100% working).

_______________________________________________

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


  • Follow-Ups:
    • Re: SynchroScrollView
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: Cocoa support for serial port access?
  • Next by Date: Re: Cocoa support for serial port access?
  • Previous by thread: -windowDidLoad not getting called
  • Next by thread: Re: SynchroScrollView
  • Index(es):
    • Date
    • Thread