NSTableCellView Image View action

三世轮回 提交于 2019-12-13 06:17:12

问题


I need to call catch action of ImageView inside NSTableCellView.

I add some action for it, but when I click the row action is not called...

I have set accept touch event property true, but no result

PatientTableView.AcceptsTouchEvents = true;

回答1:


image view does not support click action (use NSButton for that).

It does support an action when a user drags an image on to it (if the imageview is set to editable). Never used this thought. I never use actions in xcode. But always subscribe to an event on the control in c#. For the default action this is the Activated event.



来源:https://stackoverflow.com/questions/40341470/nstablecellview-image-view-action

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!