Re: Creating custom VerticalRuler for NSScrollBar
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