• 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: Creating custom VerticalRuler for NSScrollBar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating custom VerticalRuler for NSScrollBar


  • Subject: Re: Creating custom VerticalRuler for NSScrollBar
  • From: glenn andreas <email@hidden>
  • Date: Tue, 12 Apr 2005 16:28:50 -0500

this works fine, but im not sure about the "_scrollToMatchContentView" it's no where listed and seems Apple internal, so i don't know if it will be supported in future OS releases.

Your suspicions are correct - any time you are doing thing like overriding private routines (such as _scrollToMatchContentView or other undocumented routines) you're probably doing something bad.


Is this the right way do to this or should i MyTestRuler extend NSRulerView ?
or is this completely the wrong way ?


Subclassing NSRulerView is pretty simple and the correct way to do things like this (it's what I use in IDEKit to support line numbers, breakpoints, folding triangles, etc...)



Glenn Andreas                      email@hidden 
<http://www.gandreas.com/> oh my!
quadrium | build, mutate, evolve | images, textures, backgrounds, art
 _______________________________________________
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: 
 >Creating custom VerticalRuler for NSScrollBar (From: Till Niese <email@hidden>)

  • Prev by Date: Re: Order of instantiation within a NIB
  • Next by Date: Re: views within views?
  • Previous by thread: Creating custom VerticalRuler for NSScrollBar
  • Next by thread: NSWindow question.
  • Index(es):
    • Date
    • Thread