Re: Get NSPopUpButton from NSMenuItem
Re: Get NSPopUpButton from NSMenuItem
- Subject: Re: Get NSPopUpButton from NSMenuItem
- From: Quincey Morris <email@hidden>
- Date: Thu, 09 Jun 2011 12:40:48 -0700
On Jun 9, 2011, at 11:43, Siegfried wrote:
> Does anyone know if there is a way to get a pointer for the NSPopUpButton containing a NSMenu containing a NSMenuItem, which is the IBAction sender?
>
> I have multiple similar popups, and all of them have a "Custom…" menu item, designated to hiding the popup and bringing more controls to the user. It would be nice to avoid extra methods for each item.
>
> I could not find a clue in the docs, so any help is really appreciated.
If the "Custom" item is just one of the popup's items (that is, there's no submenu involved) then IIRC the popup button will be the sender, not the menu item.
Or is there a submenu involved here (which would be a NSPopUpButton containing a NSMenuItem containing a NSMenu containing a NSMenuItem, which is not exactly what you said)?
_______________________________________________
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