Skip navigation.
 
mlRe: Subclassing NSScroller
FROM : Jonathan Dann
DATE : Mon Apr 14 19:25:40 2008

On 14 Apr 2008, at 02:12, Chris Hanson wrote:

> On Apr 13, 2008, at 3:13 PM, <email_removed> wrote:
>

>> I believe this is a typo in the documentation. The method you want to
>> override is actually spelled -drawArrow:highlightParts:

>
> In <http://www.cocoabuilder.com/archive/message/cocoa/

> 2008/1/26/197320>, Troy Stephens responds to Michael Watson's 
> mention of that method with:
>

>> That method isn't part of NSScroller's published API (note its 
>> absence
>> from NSScroller.h).  Therefore it's subject to disappearing without
>> warning in a future release, and you should avoid any reliance on it
>> in your code.

>
> Don't rely on anything that isn't API.  If there's something you 
> can't do within the API, please file a bug at <http://bugreport.apple.com/

> > and describe what you're trying to create.
>
>  -- Chris
>


Hi Guys,

Thanks ever so much for your responses on this, I appreciate it.  Can 
I clarify then?

Clearly using undocumented API is a bad road to start on so -
drawArrow:highlightParts: is out of the question.  So if I override -
drawRect: (so obvious that I forgot about it), draw the arrows and 
then call -drawKnob etc. I'm then going along the right lines?

Any ideas why passing slimmer frames to -initWithFrame: has no effect 
on the initial scroller width?

Jon

Related mailsAuthorDate
mlSubclassing NSScroller Jonathan Dann Apr 13, 21:18
mlRe: Subclassing NSScroller slasktrattenator Apr 14, 00:13
mlRe: Subclassing NSScroller Michael Watson Apr 14, 00:43
mlRe: Subclassing NSScroller Chris Hanson Apr 14, 03:12
mlRe: Subclassing NSScroller Jonathan Dann Apr 14, 19:25