Re: Problem saving document with my doc icon
Re: Problem saving document with my doc icon
- Subject: Re: Problem saving document with my doc icon
- From: Peter Teeson <email@hidden>
- Date: Sat, 13 Jul 2013 14:38:36 -0400
On 2013-07-13, at 1:36 PM, Kyle Sluder wrote:
>
>> On Jul 13, 2013, at 10:15 AM, Peter Teeson <email@hidden> wrote:
>>>
>>> On 2013-07-13, at 12:57 PM, Kyle Sluder wrote:
>>>
>>>> On Jul 13, 2013, at 8:23 AM, Peter Teeson <email@hidden> wrote:
>>>>> The built app has the desired app icon. But the documents I save do not.
>>>>> Here is the Info.plist from the app in the Build folder:
>>>>
>>>>
>>>
>>> There is no plist attached to your message.
>> Well I just checked my Sent copy and it was there with a note that it will open in Xcode.
>> Is there some moderator who has edited it and deleted without advising me?
> I believe the list software will silently remove attachments under certain circumstances.
>>>>>
>>>>> Because with or without my added code I still get the Folder icon for the saved document file.
>>>>
>>>> Did you remember to make your document's UTI conform to com.apple.package?
>>> I'm not sure. Where do I set that? in my fileWrappersOfType method? Or the Info.plist?
>
> In the exported types section of your Info.plist.
>
> This is explained a bit more in the framework documentation,
> but to be honest there's so much out-of-date documentation about document types that it can be a little confusing.
> --Kyle Sluder
Well here is my Info.plist from the Build directory app Package Contents in XML form
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>11G63b</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>gmg</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>DocIcons.icns</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string></string>
</array>
<key>CFBundleTypeName</key>
<string>DocumentType</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>GIMG</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>NSDocumentClass</key>
<string>Document</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>Gimage</string>
<key>CFBundleIconFile</key>
<string>GIMG.icns</string>
<key>CFBundleIdentifier</key>
<string>com.pht.Gimage</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Gimage</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>GIMG</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>4H1503</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>11E52</string>
<key>DTSDKName</key>
<string>macosx10.7</string>
<key>DTXcode</key>
<string>0463</string>
<key>DTXcodeBuild</key>
<string>4H1503</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.word-games</string>
<key>LSMinimumSystemVersion</key>
<string>10.7</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2012 PHT Software. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
Peter
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden