|
"Does anyone know how i can get a notification for the real mouseDown on a NSTextView? Overriding mouseDown seems not to do it." It seems that cocoa doesn't make it easy to pass the mouseDown event through to the language. This is also reflected in the class library -- note that Document has a mouse up method (this is the method called by the cocoa layer when the mouse button is released in a Document, and this method is responsible for calling the mouse up action), but there is no mouseDown method. We have a variable for the mouseDownAction function, but nothing ever calls it. I think the stub is there because another kind of document (for a different editor) could be introduced in the future that would allow mouseDown interactivity. For now, it's not supported on OSX. This would be worth a note in the documentation. I'll do it shortly. hjh On Mar 7, 2009, at 12:58 AM, Mathias Kluetz wrote:
: H. James Harkins .::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..: "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman |