• 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
Getting RulerView to scroll with its TextView...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: c++ and xcode header files
  • Next by Date: Screen trash with some fonts
  • Previous by thread: c++ and xcode header files
  • Next by thread: Screen trash with some fonts
  • Index(es):
    • Date
    • Thread