Getting RulerView to scroll with its TextView...
Getting RulerView to scroll with its TextView...
- Subject: Getting RulerView to scroll with its TextView...
- From: Carl Sziebert <email@hidden>
- Date: Thu, 13 May 2004 14:36:34 -0700
Heya:
I have implemented a custom RulerView and have set it up according to
the specs. I am calling initWithScrollView: [textView
enclosingScrollView] orientation: NSVerticalRuler and everything shows
up as it should. The only issue I am facing is that when I scroll the
textView, the ruler is static and does not scroll along with it. Am I
missing something? Do I need to pass an additional message to my ruler
or the scrollView? Here is what I am currently doing:
myRulerView = [[MyRulerView alloc] initWithScrollView: [textView
enclosingScrollView] orientation: NSVerticalRuler];
[[textView enclosingScrollView] setClientView: textView];
[[textView enclosingScrollView] setHasVerticalRuler: YES];
[[textView enclosingScrollView] setVerticalRulerView: myRulerView];
[[textView enclosingScrollView] setRulersVisible: YES];
[textView setUsesRuler: YES];
[textView setDelegate: self];
Thanks in advance for your help.
Carl
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.