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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com