Ho to launch Choose File dialog on Mac
Posted
by Manish
on Stack Overflow
See other posts from Stack Overflow
or by Manish
Published on 2010-05-20T10:52:10Z
Indexed on
2010/05/21
5:50 UTC
Read the original article
Hit count: 414
mac
Hi All,
I am using LSOpenItemsWithRole() to open any file from my appication. It works fine for all files which has a default application to get opened on Mac, but for the files which cannot be open with any default application this method returns an error kLSApplicationNotFoundErr and does nothing.
For such cases I want my application to launch the "Choose Application" dialog box, so that end user can choose any application from there to open the file. This dialog box pops up whenever any such file is directly opened by double clickig. Is there is any direct API call to do the same?
any help will be appreciated, Thanks in advance!
Manish
© Stack Overflow or respective owner