• 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
Bypassing action method in NSSegmentedControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bypassing action method in NSSegmentedControl


  • Subject: Bypassing action method in NSSegmentedControl
  • From: Ulai Beekam <email@hidden>
  • Date: Mon, 8 Mar 2010 01:42:24 +0000
  • Importance: Normal

I have an NSSegmentedControl with 2 segments. The first has a menu set. The second has no menu.

I have set a target and action for the whole segmented control.

My problem is that I have to hold down the first segment to see the menu for it. By just clicking on it, the action method gets called. (And of course, clicking the second segment calls the action method, as it should, since there is no menu attached to it; so the second segment is fine and is no problem.)

How can I force the first segment to show the menu when the first segment gets a "mouseDown", i.e. how can I make the first segment act as if there were no target and action set (but of course the target and action should continue to apply for the second segment)?




_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969_______________________________________________

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

  • Prev by Date: Re: NSDocumentController subclass not instantiated first?
  • Next by Date: problems loading a sound with NSSound
  • Previous by thread: Re: short question but I don't know how to describe it
  • Next by thread: problems loading a sound with NSSound
  • Index(es):
    • Date
    • Thread