From: Dave H. <gr...@gr...> - 2005-09-17 01:39:27
|
This is a nice, normal, totally on-topic query. :) I have a window. It's got a TableView and an OutlineView. I want to know when a row in either one has been double-clicked so I can open a new 'detail' window for the clicked item. I thought this would work: class ProjectInterface < OSX::NSWindowController ns_overrides :mouseDown_ ib_outlet :projectListView, :taskListView, :window def mouseDown(event) if event.clickCount > 1 then puts "I've detected a double-click." end end end Alas, it works, but only on every part of the window BUT the two Views that I want it to work on! I don't care if I've double-clicked the border of the window, after all. :) What am I missing here? |