, , NSFilenamesPboardType.
UIResponderChain, subviews
- (NSView*) dragTest:(id< NSDraggingInfo >)sender;
nil, , subview ( ) .
Now back to parentview, when draggingEntered: triggered, count the location and find out what form it is on, call dragTest: to check if the corresponding subview wants to process it. Let the returned non-zero representation handle the event, otherwise handle it in the parent.
This method will be useful if you have many levels of subviews.
source
share