Drag and drop in an NSView
问题 I'm testig drag and drop in an NSView, but draggingEntered: is never called. code : #import <Cocoa/Cocoa.h> @interface testViewDrag : NSView <NSDraggingDestination> @end @implementation testViewDrag - (id)initWithFrame:(NSRect)frame { self = [super initWithFrame:frame]; if (self) { [self registerForDraggedTypes:[NSImage imagePasteboardTypes]]; NSLog(@"initWithFrame"); } return self; } -(NSDragOperation)draggingEntered:(id<NSDraggingInfo>)sender { NSLog(@"draggingEntered"); return