> On Aug 2, 2014, at 5:07 PM, Daryle Walker <[email protected]> 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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
