16 "title" :
"VuoGraphicsWindowDrag",
69 - (bool)makeDragEvent:(
VuoDragEvent *)dragEvent fromSender:(
id<NSDraggingInfo>)sender
74 NSPasteboard *pboard = [sender draggingPasteboard];
76 if (![[pboard types] containsObject:NSFilenamesPboardType])
79 NSPoint p = [sender draggingLocation];
82 NSArray *files = [pboard propertyListForType:NSFilenamesPboardType];
83 for (NSString *file in files)
101 - (NSDragOperation)draggingEntered:(
id<NSDraggingInfo>)sender
104 if (![
self makeDragEvent:&dragEvent fromSender:sender])
105 return NSDragOperationNone;
108 return NSDragOperationGeneric;
114 - (NSDragOperation)draggingUpdated:(
id<NSDraggingInfo>)sender
117 if (![
self makeDragEvent:&dragEvent fromSender:sender])
118 return NSDragOperationNone;
121 return NSDragOperationGeneric;
127 - (BOOL)performDragOperation:(
id <NSDraggingInfo>)sender
130 if (![
self makeDragEvent:&dragEvent fromSender:sender])
140 - (void)draggingExited:(
id<NSDraggingInfo>)sender
143 if (![
self makeDragEvent:&dragEvent fromSender:sender])