我正在使用IKImageBrowserView设置下拉删除
[self.imageBrowserView setDraggingDestinationDelegate:self];无论我在draggingEntered中返回了什么: performDragOperation: gets从未调用
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender {
// GETS CALLED
return NSDragOperationEvery;
}
- (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender {
// NOT CALLED
return YES;
}
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender {
// NOT CALLED
return YES;
}发布于 2016-05-19 13:33:08
显然,draggingUpdated:必须实现。
https://stackoverflow.com/questions/37322868
复制相似问题