mouseUp not firing in Cocoa?
问题 I'm trying to implement drag&drop functionality in my app and I ran into a problem of my mouseUp event not firing. It fires just fine if I simply click and release on my view, but if I do drag, my mouseDragged event fires and that's it. By trying different things I figured out that the problem is in my dragImage call, but I don't know how to solve it for now. Here is my code: -(void) mouseDragged:(NSEvent *)theEvent { isDragging = YES; if ([selectedCellRowIndex longValue] >= 0) { NSImage *im