Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SynchroScrollView



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.