Re: NSMenu in NSTableView column
Re: NSMenu in NSTableView column
- Subject: Re: NSMenu in NSTableView column
- From: Jonathan Taylor <email@hidden>
- Date: Tue, 12 Aug 2014 15:40:28 +0100
>> My question then is how should I access the tags in the popup menu in order to work out which tag corresponds to the selected item in each row?
>
> If I understand your setup correctly, the most direct route is to set an action on each menu item.
Ah ok, I've revisited that and got it to work. I'd tried it before and it had had no effect; I'd assumed that was something else that just didn't work with tables. However I've now spotted the compile-time warning about only sending actions to the table view delegate, and after fixing that it works nicely. Thanks very much.
Jonny
_______________________________________________
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