On Jul 26, 2010, at 5:20 PM, Dave DeLong wrote: > I have the string "com.apple.iwork.*", and I need to expand that into any > UTIs that match the string. In this case, it'd be: > > ( > "com.apple.iwork.pages.pages", > "com.apple.iwork.keynote.key", > "com.apple.iwork.numbers.numbers" > ) > > The root question I have is: How can I retrieve a list of all known UTIs?
I don't have a direct answer for you. It may not be possible. Depending on what you're trying to do, you may be able to actually use the wildcard version. For example, the shell command: mdfind 'kMDItemContentType == "com.apple.iwork.*"' works, as should the comparable NSMetadataQuery-based code. There's also this: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump which includes the info you're looking for. Cheers, Ken _______________________________________________ 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