How to get finder type "Open With" dialog box
How to get finder type "Open With" dialog box
- Subject: How to get finder type "Open With" dialog box
- From: Parimal Das <email@hidden>
- Date: Wed, 29 Apr 2009 11:22:19 +0530
Hello ppl
Cocoa gives me default file associations with apps in this code
NSString * path_ok = @"/Users/pd/Desktop/pd.rtf";
[ws openFile:path_ok withApplication:nil];
But when i try this i get an obvious error
NSString * path = @"/Users/pd/Desktop/pd2.large";
NSWorkspace * ws = [NSWorkspace sharedWorkspace];
[ws openFile:path withApplication:nil];
i am using the file with .large custom extension
What i want to do is, when my code encounters a unknown file extension, it
should open the finder type "Open With" dialog box for user to choose the
app from the list.
How to do this in cocoa, NSOpenPanel doc is not helping or i am looking in
the wrong direction??
Please help
Advance Thanks
-Parimal
--
--
Warm Regards,
Parimal Das
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden