How can I replicate the Finder's "Open With" menu for a given file type?
LSCopyApplicationURLsForURL could be the basis of a solution.
LSCopyApplicationURLsForURL
This should do the trick:
- (NSArray *)applicationsForURL:(NSURL *)url { return [(NSArray *)LSCopyApplicationURLsForURL((CFURLRef)url, kLSRolesAll) autorelease]; }