Distinguishing clicks on NSSegmentedControl segments
Distinguishing clicks on NSSegmentedControl segments
- Subject: Distinguishing clicks on NSSegmentedControl segments
- From: m <email@hidden>
- Date: Wed, 24 Dec 2003 22:34:59 -0600
I want a segmented control using tracking mode
NSSegmentSwitchTrackingMomentary (like the forward/backward buttons in
Safari). When the user clicks on one of the segments, the action that I
assigned to the control is being called.
So far so good.
Now the fun part: how do I determine which segment the user clicked on?
Setting tags for the segments (using NSSegmentedCell's
setTag:forSegment: method) is useless, since there is nothing like a
"tagForMostRecentlyClickedSegement" method.
What am I missing?
_murat
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.