English 中文(简体)
在其他观点被拖 d时,MouseDra没有释放
原标题:MouseDragged not released when dragging on other views

I have 2 subclasses of NSView that are subviews to a common superview. They dont overlap and they both intercept mousedragged calls. When I drag from one of the subclasses to the other the mousedragged function will be called until I release the mouse button even when I drag all over the screen. I though the default behavior was for the mousedragged function to be called only when the mouse was over the bounds of the receiver. Iam also using NSTrackingArea for mouse enter, exit and move events, but from what I ve been reading does not involve drag events

Thank you for your time, Jose.

最佳回答

页: 1 这样,你就可以拦截的活动,并以你所希望的任何方式发出。

问题回答

暂无回答




相关问题
Where to get the "latest" ASP .NET Preview DLL and Script

I have been trying to download the ASP .NET AJAX Futures but I can only see old versions of the DLL via sample tutorials from other websites. I need the DLL to use the Drag and Drop feature according ...

To MVVM or not to MVVM that is the question [closed]

I am rewriting my windows forms based application and I am going to use WPF. The application relies heavily on drag and drop techniques, in a very graphically environment. The uses "Design" reports ...

Make table rows sortable with YUI

Currently I have a table similar to below: <table id="tbl"> <thead> <tr><th>Example Title</th><th>Title2</th></tr> </thead> &...

Drag & drop with .ui files

I m having big troubles with drag & drop. I ve created a new Qt Designer Form Class in which I have one QListWidget and one QWidget. Now I want to enable dragging & dropping between these two ...

Java中校正

当我把档案从桌面上拖到浏览器时,我把浏览器放在重点(Safari或PireFox,现在),我知道一切工作权(拖拉,有回信等)。 我也能够......

热门标签