Re: About an alternative menu choice and toolbar buttons.
Re: About an alternative menu choice and toolbar buttons.
- Subject: Re: About an alternative menu choice and toolbar buttons.
- From: Jens Alfke <email@hidden>
- Date: Sat, 02 Aug 2014 17:13:06 -0700
> On Aug 2, 2014, at 5:07 PM, Daryle Walker <email@hidden> wrote:
>
> 1. I tried that cool combined button for Back and Forward (NSSegmentedControl), but the entire button uses a single action to send and a single status to have. How can I have the two halves have separate actions and enabled/disabled states?
Segmented controls have a kludgy API. IIRC you use the .selectedSegment property in your action method to determine which segment was clicked. You can enable segments independently using the -[setEnabled:forSegment:] method. There are some more configuration options available in the NSSegmentedCell class.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden