Hi All,

I want to show the Panel like Finder's "Choose Application" to let user
slect one application to open with  the file.
Follow is my code:

NSOpenPanel *openPanel = [NSOpenPanel openPanel];
[openPanel setCanChooseDirectories:NO];
[openPanel setCanChooseFiles:YES];
[openPanel setAllowsMultipleSelection:NO];
if([openPanel runModalForTypes:[NSArray arrayWithObjects:@"app",nil]] ==
NSOKButton)
{
 ...
}

And, I want to only show the supported application for the associated file.
Like Finder's "Choose Application" Panel, it can set Eanble to "Recommended
Applications" to filter the applications.  the NSOpenPanel can support it?
or i must usr another solution. thanks for any reply.

best regards
Kakaxi
_______________________________________________

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

Reply via email to