Re: Get NSPopUpButton from NSMenuItem

2011-06-09 Thread Siegfried
On 09/06/2011, at 17:06, Quincey Morris wrote: > On Jun 9, 2011, at 12:51, Siegfried wrote: > >> From the other items, I just need to retrieve their tags so I didn't connect >> the action on the popup as it was an ivar already, and just created a >> specific action for the "Cusom" item. > > Is

Re: Get NSPopUpButton from NSMenuItem

2011-06-09 Thread Quincey Morris
On Jun 9, 2011, at 12:51, Siegfried wrote: > From the other items, I just need to retrieve their tags so I didn't connect > the action on the popup as it was an ivar already, and just created a > specific action for the "Cusom" item. Is there any reason not to use a specific tag for the custom

Re: Get NSPopUpButton from NSMenuItem

2011-06-09 Thread Siegfried
On 09/06/2011, at 16:40, Quincey Morris wrote: > On Jun 9, 2011, at 11:43, Siegfried wrote: > >> … > > If the "Custom" item is just one of the popup's items (that is, there's no > submenu involved) No there isn't, but: > then IIRC the popup button will be the sender, not the menu item. Actua

Re: Get NSPopUpButton from NSMenuItem

2011-06-09 Thread Quincey Morris
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 hid

Get NSPopUpButton from NSMenuItem

2011-06-09 Thread Siegfried
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.