I register my app with:
NSString *self_id=[[NSBundle mainBundle] bundleIdentifier];
CFStringRef cfString;
cfString = UTTypeCreatePreferredIdentifierForTag(
kUTTagClassFilenameExtension,
CFSTR("fdp"),
kUTTypeData);
OSStatus a = LSSetDefaultRoleHandlerForContentType((CFStringRef)cfString,kLSRolesViewer,(CFStringRef)self_id);
But on the other side, how can i get the filename the finder send to my app? what the mechanism should i set for getting the filename? Is there any document about this problem?