Bypassing action method in NSSegmentedControl
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