के आधार पर अपना स्वयं का फ़ाइल एक्सटेंशन बनाना मेरा एप्लिकेशन *.mndl
प्रकार की फ़ाइलों के साथ संभालता है जो एक अनुकूलित *.plist
से अधिक नहीं है। अब तक मैं *.plist
फ़ाइलों का उपयोग कर रहा हूं लेकिन अब मैं एक्सटेंशन को जोड़ना चाहता हूं और किसी अन्य ऐप से *.mndl
फ़ाइलों को खोलने में सक्षम हूं, मुझे एहसास हुआ है कि file.plist
से file.mndl
पर काम नहीं कर रहा है।प्लिस्ट
मैं अपने आप से कंप्यूटर से किसी फ़ाइल file.mndl
भेजा और जब mail.app में प्राप्त मैं file.mndl.plist
(यह स्वचालित रूप से नाम दिया गया था मिल गया (इसलिए, मैं भले ही मैं सही ढंग से विस्तार संघ और निर्यात काम किया पता नहीं है) , यह हुआ जब मेरे आईपैड reseting)
मैं अपने खुद के mndl फ़ाइलें, जबकि इसकी सामग्री NSDictionary वर्ग से +dictionaryWithContentsOfFile:
का उपयोग कर को देख पाना कैसे बना सकते हैं?
यहां तक कि मैं आईओएस के साथ काम कर रहा हूं, मुझे विश्वास है कि इस तरह की चीजें मैकोज़ और कोको से पोर्ट की गई थीं। तो कोको डेवलपर्स भी यह जान सकते थे।
आपकी टिप्पणियां/उत्तर की सराहना की जाती है।
धन्यवाद
उत्तर दिया:
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>Mandala Chart File</string>
<key>UTTypeIdentifier</key>
<string>com.nacho4d.Accordion.mndl</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<string>mndl</string>
</dict>
</dict>
</array>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array>
<string>Document320Icon.png</string>
<string>Document64Icon.png</string>
</array>
<key>CFBundleTypeName</key>
<string>Mandala Chart File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>com.nacho4d.Accordion.mndl</string>
</array>
</dict>
</array>
क्या 'UTExportedTypeDeclarations' और' CFBundleDocumentTypes' कुंजी दोनों को ऐसा करने की आवश्यकता है? – Lealo