• 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: NSSegmentedControl temporary click only?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSegmentedControl temporary click only?


  • Subject: Re: NSSegmentedControl temporary click only?
  • From: Vince DeMarco <email@hidden>
  • Date: Wed, 2 Jun 2004 14:18:52 -0700

On Jun 2, 2004, at 1:46 PM, Matt Ball wrote:

I've made an NSSegmentedControl which acts as a back/forward button. Everything works, except when I click it, the segment stays selected. I want the click to be temporary. I though that putting something like [navSegmentedControl setSelectedSegment:nil]; at the end of the segmentedControl's action would do it, but it doesn't work. Does anyone have any tips?


Look at this in the NSSegmentCell

typedef enum {
NSSegmentSwitchTrackingSelectOne = 0, // only one button can be selected
NSSegmentSwitchTrackingSelectAny = 1, // any button can be selected
NSSegmentSwitchTrackingMomentary = 2 // only selected while tracking
} NSSegmentSwitchTracking;


Grab the cell from the control then set the SegmentSwitchTracking from there

vince
_______________________________________________
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: 
 >NSSegmentedControl temporary click only? (From: Matt Ball <email@hidden>)

  • Prev by Date: Interrupt-level callbacks
  • Next by Date: Re: Determinating iChat status
  • Previous by thread: NSSegmentedControl temporary click only?
  • Next by thread: Interrupt-level callbacks
  • Index(es):
    • Date
    • Thread