kxmenu icon indicating copy to clipboard operation
kxmenu copied to clipboard

Tag property in KxMenu

Open demetrio812 opened this issue 12 years ago • 4 comments

Hello, I find the tag property useful in order to use a single method for the different actions. I kept the same interface to keep compatibility.

Hopefully you will merge it with the main code.

Thanks, Dem

demetrio812 avatar Jun 21 '13 17:06 demetrio812

Hello, any news on this? Thanks

demetrio812 avatar Jul 30 '13 15:07 demetrio812

I'm not sure why the developer ( @kolyvan ) of this beautiful component is not active and not responding to this good change! ~ ~

However to @demetrio812, good change! :)

However I found one more way (without even modifying kxmenu)

in your action,

NSInteger tappedMenuItemIndex = [arrayMenuItems indexOfObject:sender];
if(tappedMenuItemIndex == 1) {
    //...
}

Note, here sender is kxMenuItem.

hemangshah avatar Dec 23 '14 04:12 hemangshah

Thanks @hemangshah, good idea! I thought my change was easy enough to be quickly integrated but anyway :)

demetrio812 avatar Dec 23 '14 13:12 demetrio812

@demetrio812 , Your changes is really easy (and understandable too), I appreciated it, but mine is just another solution :)

hemangshah avatar Dec 24 '14 05:12 hemangshah