I have a NSSegmentedControl
in which, upon user's click, some conditions should be met before the action is sent to its target.
Till now i managed to do this, by overriding the -mouseDown
event handler and invoking the segmentedControl's [super mouseDown]
handler only after successfully checking my conditions.
Only one problem. The user doesn't have any visual clue that a segment has been clicked until [super mouseDown]
is invoked.
So the question is: is there a way to set an "highlighted" state programmatically (more or less like "setHighlighted
" for NSButtons
)?