• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Distinguishing clicks on NSSegmentedControl segments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Distinguishing clicks on NSSegmentedControl segments (From: m <email@hidden>)

  • Prev by Date: Re: When to use rounded NSTextFields
  • Next by Date: Re: Frameworks within Frameworks
  • Previous by thread: Re: Distinguishing clicks on NSSegmentedControl segments
  • Next by thread: Frameworks within Frameworks
  • Index(es):
    • Date
    • Thread