• 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: About an alternative menu choice and toolbar buttons.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >About an alternative menu choice and toolbar buttons. (From: Daryle Walker <email@hidden>)

  • Prev by Date: About an alternative menu choice and toolbar buttons.
  • Next by Date: Re: How to get the time zone of a parsed date/time string?
  • Previous by thread: About an alternative menu choice and toolbar buttons.
  • Next by thread: Re: About an alternative menu choice and toolbar buttons.
  • Index(es):
    • Date
    • Thread