[Interest] [ iOS ] How implement didFinishLaunchingWithOptions to open file associated with MyWidgetApp from another app?

Edward Sutton edward.sutton at subsite.com
Mon Jun 1 17:29:44 CEST 2015


For example, the user receives a "report.myapp" file in Apple Mail app as a file attachment.

When user opens the file attachment, how do you offer "Open in MyWIdgetApp” as one of the choices?  Has anyone figured out how to do this or found an example?


I use UIDocumentInteractionController in MyApp present user a choice to open a KML file in “Open in Google Earth”.  How do I do the opposite?


I added CFBundleDocumentTypes to my Info.plist as a first step:



    <key>CFBundleDocumentTypes</key>

    <array>

        <dict>

            <key>CFBundleTypeExtensions</key>

            <array>

                <string>myapp</string>

            </array>

            <key>CFBundleTypeIconFile</key>

            <string>icons.icns</string>

            <key>CFBundleTypeMIMETypes</key>

            <array>

            <string>application/vnd.acme.myapp+xml</string>

            </array>

            <key>CFBundleTypeName</key>

            <string>TSR Document</string>

            <key>CFBundleTypeRole</key>

            <string>Editor</string>

            <key>LSTypeIsPackage</key>

            <false/>

            <key>NSDocumentClass</key>

            <string>BrowserDocument</string>

        </dict>

    </array>

The hard part appears to be figuring out how to handle didFinishLaunchingWithOptions and pass the file to my Qt widget app.  Is didFinishLaunchingWithOptions the key to implementing open

Any tips or direction are much appreciated,

-Ed
This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150601/139f2a68/attachment.html>


More information about the Interest mailing list