Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (25 sloc) 877 Bytes
// DraggableExtension.m
// DraggableDownload
// Created by Pieter de Bie on 26-11-08.
// Copyright 2008 Pieter de Bie. All rights reserved.
#import "DraggableExtension.h"
@implementation DownloadRow (DraggableExtension)
- (void)newMouseDragged:(id)fp8
NSString *path = [[[self entry] downloadFile] aliasedOrOriginalPath];
NSArray *fileList = [NSArray arrayWithObject:path];
NSPasteboard *pb = [NSPasteboard pasteboardWithName:NSDragPboard];
[pb declareTypes: [NSArray arrayWithObject:NSFilenamesPboardType] owner:nil];
[pb setPropertyList:fileList forType:NSFilenamesPboardType];
[self dragImage:_iconImage at:NSMakePoint(0,0) offset:NSMakeSize(0,0) event:fp8
pasteboard:pb source:self slideBack:YES];
[self newMouseDragged:fp8];
- (NSDragOperation) newDraggingSourceOperationMaskForLocal:(BOOL)local
return NSDragOperationEvery;
Jump to Line
Something went wrong with that request. Please try again.