I am using Cocoa with Obj C.
I am using the following method to open a file associated with a particular application.
But if the file is associated with certain application, it is opening.
If the file is not associated with any application, I want the user to select the application also with which the file has to be opened. In the following code we have to tell which application it has to open.
But I want user to select the application at run time dynamically.
--Satya.
I am using the following method to open a file associated with a particular application.
Code:
[[NSWorkspace sharedWorkspace] openFile:<some file path>]
If the file is not associated with any application, I want the user to select the application also with which the file has to be opened. In the following code we have to tell which application it has to open.
Code:
[[NSWorkspace sharedWorkspace] openFile:< some file path> withApplication:@"TextEdit"]
But I want user to select the application at run time dynamically.
--Satya.