cocoa - Problem registering file type through UTIs -


I'm using to create a license in my app, and as the developer guide tells me that I registered the custom file Trying to expand, such as users can simply click on the license and my application will open it and then verify the license.

To do this, I have added the export UTI announcement to my Info.plist as follows:

   

However, when I double-click the file with that extension, it does not open in MyApp, nor from the recommended apps for MyApp to open the file type. Appears as one. Also, while viewing the information panel for the file, the details of the specified file type are not visible.

Thanks

= "post-text" itemprop = "text" >

You need the CFBundleDocumentTypes announcement.

  & lt; Key & gt; CFBundleDocumentTypes & lt; / Key & gt; & Lt; Array & gt; & Lt; Dict & gt; & Lt; Key & gt; CFBundleTypeIconFile & lt; / Key & gt; & Lt; String & gt; MyAppLicenseIcon & lt; / String & gt; & Lt; Key & gt; CFBundleTypeRole & lt; / Key & gt; & Lt; String & gt; Viewer & lt; / String & gt; & Lt; Key & gt; NSDocumentClass & lt; / Key & gt; & Lt; String & gt; MyAppLicenseHandler & lt; / String & gt; & Lt; Key & gt; LSItemContentTypes & lt; / Key & gt; & Lt; Array & gt; & Lt; String & gt; Com.mycompany.myapplicense & lt; / String & gt; & Lt; / Array & gt; & Lt; / Dict & gt; & Lt; / Array & gt;  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -