Re: [Q] How to let the pasteboard know a file type?
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:Content-Type; b=Th0TEpDr0e7KVcBw02v+HYsbwdT5BonSuFZYVLd8QvFpZ3MzqRkm6e3mQyBYT++DOQq13DQakedSOZJwGBbOySv3OZiBjyCydv1fZ/N+r5ToyiYD6yBZWiGNQd3fTn0fzGEn1rqAE3uHZlbDnOi9jeODIqqjq4Gr2JxAECnAreM= ; User-agent: Thunderbird 2.0.0.18 (Windows/20081105) NSString *quicktimeFileNamesPboardType = NSCreateFilenamePboardType(@"mov"); [myNSTableView registerForDraggedTypes:[NSArray arryWithObject:quickTimeFileNamesPboardType]]; NSString *quicktimeFileNamesPboardType = NSCreateFilenamePboardType(@"mov"); anIndex = [selectedRowsIndexSet firstIndex]; while( anIndex != NSNotFound ) { fileName = [NSString stringWithFormat:@"%@/%@.mov", configPath, [[dataArray objectAtIndex:anIndex] name]]; [fileNamesArray addObject:fileName]; // Next index anIndex = [selectedRowIndexSet indexGreaterThanIndex:anIndex]; } [pboard declareTypes:[NSArray arrayWithObjects:quicktimeFilenamesPboardType, nil] owner:nil]; isSuccessful = [pboard setPropertyList:fileNamesArray forType:quicktimeFilenamesPboardType]; ... Item Reference: 19884c10 Item Bounds (tlbr): { 86, 1, 104, 191 } Number of flavors: 0 _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
JongAm Park