- // this is what we would like to do but it seems that the
- // viewer for PDF is often quicktime...
- //LSRolesMask role = (mode == VIEW) ? kLSRolesViewer : kLSRolesEditor;
- (void)mode;
- LSRolesMask role = kLSRolesAll;
- FSRef outAppRef;
- OSStatus status =
- LSGetApplicationForInfo(kLSUnknownType, kLSUnknownCreator,
- cfs_ext, role, &outAppRef, NULL);
+ CFStringRef cfs_uti = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, cfs_ext, NULL);