• 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: programatically show NSSegmentedCell menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: programatically show NSSegmentedCell menu?


  • Subject: Re: programatically show NSSegmentedCell menu?
  • From: Bob Clark <email@hidden>
  • Date: Thu, 27 Mar 2008 13:32:06 -0700

On Mar 27, 2008, at 1:21 PM, Jesse Grosjean wrote:
I'm trying to programatically show a NSSgetmentedCell menu, as if the user has clicked on that segmented cell. For normal popup buttons you can do this with 'performClick:', but that doesn't work for segmented controls, because it will always just perform the click on the middle cell. Is there a way to do a "targeted" performClick on a NSSegmentedControl? That's targeted to a specific cell?

Hi Jesse.

Use setSelectedSegment instead.

    NSSegmentedControl* seg;
    ...
    [seg setSelectedSegment:4];


-- Bob Clark Lead Software Development Engineer RealPlayer Mac/Unix RealNetworks, Inc.


_______________________________________________

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: programatically show NSSegmentedCell menu?
      • From: Jesse Grosjean <email@hidden>
References: 
 >programatically show NSSegmentedCell menu? (From: Jesse Grosjean <email@hidden>)

  • Prev by Date: Re: Interface Builder
  • Next by Date: Re: Leopard on PPC
  • Previous by thread: programatically show NSSegmentedCell menu?
  • Next by thread: Re: programatically show NSSegmentedCell menu?
  • Index(es):
    • Date
    • Thread