I have managed to get my slider working the way I want it to by
overriding mousedown and mousedragged, however there is still one
small detail. I cant see how to make the slider knob show its
'pushed' image while the slider is being dragged. Does anyone know
how to do this?

thanks!

Peter


I'm not sure but maybe -[NSCell setHighlighted:] will help you.
If it does not work, have a look at -[NSCell setState:]

That's probably one of this two properties that control the cell
apparence.

Sadly both of those don't appear to do the job. Oh well.

regards,

Peter

To show the pressed image, implement -startTrackingAt:inView: and
-stopTracking:at:inView:mouseIsUp in your cell. All you need to do
in these methods is set a BOOL and then call super. Then in the
method where you draw your knob, check the BOOL and draw the pressed
or normal image accordingly.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to