UTI not being imported?
UTI not being imported?
- Subject: UTI not being imported?
- From: "C.W. Betts" <email@hidden>
- Date: Mon, 05 Dec 2011 14:10:03 -0700
I'm trying to use an imported UTI in an application, but it isn't working. This is the UTI declared in the info.plist file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.disk-image</string>
<string>public.content</string>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>PlayStation Disc</string>
<key>UTTypeIdentifier</key>
<string>com.codeplex.pcsxr.psxdiscfile</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>bin</string>
<string>img</string>
<string>mdf</string>
<string>iso</string>
</array>
</dict>
</dict>
</plist>
And I'm trying to get an open dialog to use it via this call:
[openDlg setAllowedFileTypes:[NSArray arrayWithObject:@"com.codeplex.pcsxr.psxdiscfile"]];
However, when I try to open a file (a empty file with .iso as the extension), I can't select it. What am I doing wrong?_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden