On Dec 5, 2011, at 3:10 PM, C.W. Betts wrote: > 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?_______________________________________________
The problem is probably that OS X already includes a UTI for .iso: public.iso-image. Your best bet is probably to use public.iso-image instead. You’re probably also going to have trouble with .img, which OS X recognizes as com.apple.disk-image-ndif, and with .bin, which is com.apple.macbinary-archive. Since you don’t actually seem to be going for MacBinary with the latter, you’re probably better off just going by filename extension for .bin. Charles_______________________________________________ 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com