• 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: Segmented Control Question?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segmented Control Question?


  • Subject: Re: Segmented Control Question?
  • From: Randall Meadows <email@hidden>
  • Date: Fri, 15 Feb 2008 13:56:31 -0700

On Feb 15, 2008, at 1:47 PM, Doug Penny wrote:

Is it possible to set a segmented control's selection to none?  I have
a three views of the same data that I would like to switch between
using a segmented control.  I also have a few views of different data
that are selected with separate toolbar buttons.  When I select one of
these toolbar buttons, I need to tell the segmented control to set
it's selection to none.  Any ideas or is this the completely wrong way
to handle this situation?

I haven't actually tried this, but from the docs it *appears* that you could use -setSelected:forSegment: to deselect all segments.


The "Segmented Controls Programming Guide" seems to support this, as it says "You can find out which segment, *if*any*, is selected... (emphasis mine).
_______________________________________________


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


  • Follow-Ups:
    • Re: Segmented Control Question?
      • From: "Doug Penny" <email@hidden>
References: 
 >Segmented Control Question? (From: "Doug Penny" <email@hidden>)

  • Prev by Date: Segmented Control Question?
  • Next by Date: Re: [Foo new] vs [[Foo alloc] init]: was Re: In-loop releasing of objects does not free memory?
  • Previous by thread: Segmented Control Question?
  • Next by thread: Re: Segmented Control Question?
  • Index(es):
    • Date
    • Thread