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:Cc:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=Q/PEWVqwOHkpopGebtNJWlz30qY2MzkA+Wj0/e7fHs5s+Z4T6LeZaahdzEPKWrBk73UNxmWJQFinBcgOj06W3Sf6Wf7eg502v5Ctr4ui5sxtNAMolOZ6hOf9XAEArKjfo06NZ/qLO1ndPRvQZGLaY9uyFnY0p85TodiYeIpW8Y8= ; Thanks for your commenting, but... If it s not recognized as path, the D&D doesn't work. Also, I checked like this : For still images : (gdb) po fileName file://localhost/Volumes/NEXIO64/Stills/mccain13.tga (gdb) po [fileName lastPathComponent] mccain13.tga (gdb) po [fileName pathExtension] tga For mov files : (gdb) po fileName file://localhost/Volumes/NEXIO64/MOV/0000By the Way3 C.mov (gdb) po [fileName lastPathComponent] 0000By the Way3 C.mov (gdb) po [fileName pathExtension] mov So, there should be no problem. Thanks, JongAm Park . On Mar 25, 2009, at 10:56 AM, Computer-Training Segeler wrote: Hallo JongAm, Success Reinhard Segeler Am 25.03.2009 um 17:17 schrieb JongAm Park: Hello, all In my code, I put the extensions for mov and image files. The code is like : 1. here to check NSLog (@"fileName is %@", [ fileName lastPathComponent ] ); NSLog (@"fileExtension is %@", [ fileName pathExtension ] ); Use this to create your path 2: } if( fileName ) [fileNamesArray addObject:fileName]; Thank you. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/reinhard%40segeler.biz _______________________________________________ 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... 1. I don*t what the problem comes from, but it help you to check if the fileExtension is recognized as this. I've inserted some code I would use to find that out. 2. Should work, cause i think, your string for the mov-file is not recognized as path!!! By using lastPathComponent in the image fileName that fileName is recognized as path! I'm quite sure that I had that problem long time ago in my code. I wrote lines of codes for Drag&Drop from an NSTableView of my program to the FCP. What is strange is that file extension for dragged image file is shown on the FCP's project window, while that of dragged mov file is not. If the same image file is dragged and dropped from the Finder, it doesn't show the file extension. isStillImage = [[mClipArray objectAtIndex:indexInClipsArray] alpha_id]; if( isStillImage ) { NSString *fileNameInStillImageFolder; NSString *currentFileName; NSRange rangeForFileName; currentFileName = [[mClipArray objectAtIndex:indexInClipsArray] longName]; while( fileNameInStillImageFolder = [dirEnum nextObject] ) { rangeForFileName = [fileNameInStillImageFolder rangeOfString:currentFileName]; if( rangeForFileName.location != NSNotFound ) { // Found it!!!! fileName = [NSString stringWithFormat:@"%@%@/Stills/%@", fileNamePrefix, configPath, [fileNameInStillImageFolder lastPathComponent]]; break; } } } else { fileName = [NSString stringWithFormat:@"%@%@/MOV/%@.mov", fileNamePrefix, configPath, [[mClipArray objectAtIndex:indexInClipsArray] longName]]; fileName = [NSString stringWithFormat:@"%@%@/MOV/%@", fileNamePrefix, configPath, [[mClipArray objectAtIndex:indexInClipsArray] longName]]; fileName = [ fileName stringByAppendingPathExtension:@"mov" ] ) I also used DragPeeker X for debugging D&D. However, it doesn't reveal any differences. So, how to make the extension not displayed on the FCP's project window? This email sent to reinhard@segeler.biz This email sent to site_archiver@lists.apple.com