Tray: Add drag-end and drop events
This commit is contained in:
parent
f98147ea01
commit
d1e8e71e3f
6 changed files with 31 additions and 0 deletions
|
@ -262,6 +262,15 @@ const CGFloat kVerticalTitleMargin = 2;
|
|||
trayIcon_->NotifyDragExited();
|
||||
}
|
||||
|
||||
- (void)draggingEnded:(id <NSDraggingInfo>)sender {
|
||||
trayIcon_->NotifyDragEnded();
|
||||
}
|
||||
|
||||
- (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender {
|
||||
trayIcon_->NotifyDrop();
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender {
|
||||
NSPasteboard* pboard = [sender draggingPasteboard];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue