site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=LPIQxizpzwtqTlNrqJuJoFYqrNaRlCIFrpy5eYUKevjFQbewpdwjcTFl2NWIY9pVYrqhOg+BzQUI6pBVHvfa8Mwlpcveb35KGjyuL4jKtdqTuFqBrv+Rn3PXZ5hiMGUOMD5k7Sj0y+XcacltLu8iVWeYQ/Eoc7lEtcbowL9MJ/0= ; User-agent: Thunderbird 2.0.0.18 (Windows/20081105) Hello. // next index anIndex = [selectedRowsIndexSet indexGreaterThanIndex:anIndex]; } } Thank you. _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... I wrote some codes which will enable drag&drop from my application to FCP's project. Before implementing it, I tried dragging and dropping a file from a Finder to an FCP's project which was opened with the FCP. After confirming that the FCP supports drag&drop from the Finder, I started implementing codes like below. In awakeFromNib ///////////////////////////////////////////////////// // Registering the drag type for Drag & Drop support [mClipTable registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType,nil]]; // Allow that the drag target or where it drops is other application, // especially the Final Cut Pro. [mClipTable setDraggingSourceOperationMask:NSDragOperationEvery forLocal:NO]; //////////////////////////////////////////////////// - (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard { JALog(@"--[Initiation of Drag]--"); JALog(@"rowIndexes : %@", rowIndexes); NSMutableArray *fileNamesArray = [NSMutableArray array]; // The pasteboard is for NSFilenamesPboard [pboard declareTypes:[NSArray arrayWithObject:NSFilenamesPboardType] owner:self]; NSString *configPath = [preferenceSetting configPath]; NSIndexSet *selectedRowsIndexSet = [mClipTable selectedRowIndexes]; unsigned int anIndex; int indexInClipsArray; NSString *fileName; anIndex = [selectedRowsIndexSet firstIndex]; while( anIndex != NSNotFound ) { // For NSFilenamesPboardType indexInClipsArray = [self getClipsArrayIndex:anIndex]; fileName = [NSString stringWithFormat:@"%@/%@", configPath, [[mClipArray objectAtIndex:indexInClipsArray] longName]]; [fileNamesArray addObject:fileName]; [pboard setPropertyList:fileNamesArray forType:NSFilenamesPboardType]; return YES; When I drag and dropped a file which is shown in my application to the FCP, the FCP displayed a dialog box which said "File Error: Unknown file.". Because the paste board type to use is NSFilenamesPboardType, I populate file names with its path prefixed. But it didn't work. Can anyone tell me what paste board type the FCP can accept and how to pass the file's reference, whether it is file name or not, to the FCP? This email sent to site_archiver@lists.apple.com