Question

How can I replicate the Finder's "Open With" menu for a given file type?

Was it helpful?

Solution

This should do the trick:

- (NSArray *)applicationsForURL:(NSURL *)url {
    return [(NSArray *)LSCopyApplicationURLsForURL((CFURLRef)url,
                                                   kLSRolesAll) autorelease];
}

OTHER TIPS

LSCopyApplicationURLsForURL could be the basis of a solution.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top