Re: Subclassing NSScroller
Re: Subclassing NSScroller
- Subject: Re: Subclassing NSScroller
- From: Jonathan Dann <email@hidden>
- Date: Mon, 14 Apr 2008 18:25:40 +0100
On 14 Apr 2008, at 02:12, Chris Hanson wrote:
On Apr 13, 2008, at 3:13 PM, email@hidden 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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden