Re: Obtaining the NSGraphicsContext for custom NSView
Re: Obtaining the NSGraphicsContext for custom NSView
- Subject: Re: Obtaining the NSGraphicsContext for custom NSView
- From: Ryan Stevens <email@hidden>
- Date: Tue, 15 Mar 2005 07:18:17 -0800
On Mar 14, 2005, at 11:52 AM, John C. Randolph wrote:
On Mar 14, 2005, at 11:36 AM, Damien Sorresso wrote:
On Mar 14, 2005, at 1:10 PM, John C. Randolph wrote:
It looks like you're trying to implement an NSSlider subclass, in
which case you're doing more work than you need to. Did you know
that you can override -drawKnob: in NSSliderCell?
Oh really? I just got stuff working on my end (I'm not going through
the drawRect method). How far can I go in customizing how the slider
looks
If you make an NSSliderCell subclass, you can draw whatever you like
in -drawInside:inView:.
Also, if your knob or bar aren't the standard size (which varies on
controlSize) you'll probably want to override NSSlider's -sizeToFit to
keep it from adjusting itself.
_______________________________________________
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