Re: [Q] Strange Drag & Drop from my app to FCP project window
Re: [Q] Strange Drag & Drop from my app to FCP project window
- Subject: Re: [Q] Strange Drag & Drop from my app to FCP project window
- From: Andreas Kiel <email@hidden>
- Date: Thu, 26 Mar 2009 02:58:23 +0100
Hi,
I don't know anything about Cocoa programming but the
"fileNameInStillImageFolder lastPathComponent" does include the file
extension I think.
Just a guess
Andreas
On 25.03.2009, at 17:17, JongAm Park wrote:
Hello, all
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.
In my code, I put the extensions for mov and image files.
The code is like :
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]];
}
if( fileName )
[fileNamesArray addObject:fileName];
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?
Thank you.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40spherico.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden