Re: Distinguishing clicks on NSSegmentedControl segments
Re: Distinguishing clicks on NSSegmentedControl segments
- Subject: Re: Distinguishing clicks on NSSegmentedControl segments
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 24 Dec 2003 23:46:02 -0800
On Dec 24, 2003, at 8:34 PM, m wrote:
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.
This turns out not to be the case:
"Note that the cell's selectedSegment method returns the segment that
was last clicked. This means you can find out which segment was
clicked, even when tracking mode is NSSegmentSwitchTrackingSelectAny
orNSSegmentSwitchTrackingMomentary."
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
SegmentedControl/Articles/SegmentedControlCode.html>
mmalc
_______________________________________________
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.