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