Commit 35ccb9b1 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: CAS: show drag-copy-cursor when receiving items from the playlist (10.6+ only)

parent a3c2e9d2
......@@ -79,6 +79,11 @@ extern OSErr UpdateSystemActivity(UInt8 activity);
@interface NSURL (IntroducedInSnowLeopard)
- (NSArray *)pathComponents;
@end
@interface NSCursor (IntroducedInSnowLeopard)
+ (NSCursor *)dragCopyCursor;
@end
#endif
#pragma mark -
......
......@@ -605,6 +605,9 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
b_activeDragAndDrop = YES;
[self setNeedsDisplay:YES];
if (OSX_SNOW_LEOPARD || OSX_LION)
[[NSCursor dragCopyCursor] set];
if ((NSDragOperationGeneric & [sender draggingSourceOperationMask]) == NSDragOperationGeneric)
return NSDragOperationGeneric;
......@@ -613,12 +616,14 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
- (void)draggingEnded:(id < NSDraggingInfo >)sender
{
[[NSCursor arrowCursor] set];
b_activeDragAndDrop = NO;
[self setNeedsDisplay:YES];
}
- (void)draggingExited:(id < NSDraggingInfo >)sender
{
[[NSCursor arrowCursor] set];
b_activeDragAndDrop = NO;
[self setNeedsDisplay:YES];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment