How to catch click event on NSImageView as subview in NSTableRowView?

In NSTableView I have NSTableRowView and in this row there is some NSImageView subview. Question: how to track click event on this image?

Answers


You would need to create NSImageView subclass to handle mouse events. But NSTableView does not allow handling -[NSImageView mouseUp:] and other mouse messages. (I think this is related to how a table handles selection).

In this situation I had to use a borderless "Bevel - Switch" button to handle clicks.


Need Your Help

Access inner XML data with Java and Xerces

java xml-parsing xerces

I am trying to parse a XML document using Xerces, but I cant seem to access the data within the elements, below is a sample XML document;

Using 32-bit dll on 64-bit system shows 0x8007000B Error

c++ visual-studio-2010 c#-4.0 32bit-64bit dllimport

I have to use a third party dll in my application. The dll is an 32-bit and the system iam using is 64-bit OS.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.