Re: Type/Creator codes for RTFD Documents
Re: Type/Creator codes for RTFD Documents
- Subject: Re: Type/Creator codes for RTFD Documents
- From: Timothy Carl Buchheim <email@hidden>
- Date: Wed, 11 Feb 2004 10:38:31 -0800
On Feb 10, 2004, at 8:25 PM, Tod Cunningham wrote:
Thanks for the quick response, that really looked like the right path
to follow, but I still couldn't get it to work. First I tried adding
the PkgInfo file to the Contents directory. The PkgInfo file was
simple enough, so I used vi to create the file containing "EntXRTFD"
(my document creator & type code). That did work even through a
reboot to try to flush finder cashes.
try "RTFDEntX" .. it's type, then creator.
Same thing with your Info.plist .. the CFBundlePackageType is the
filetype (RTFD) and the CFBundleSignature should be the creator (EntX)
Can these be added manually through a Terminal window or is there some
other flag that I have to set for the OS to pickup these settings?
Any other ideas?
I did it in the Terminal: mkdir foobar.rtfd/Contents; echo "RTFDxcde"
> foobar.rtfd/Contents/PkgInfo
--- Contents of Info.plist ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>EntX</string>
<key>CFBundleSignature</key>
<string>RTFD</string>
</dict>
</plist>
--
Tim Buchheim System Administrator
Computer Science Department Phone: (909) 607-3485
Harvey Mudd College Fax: (909) 607-8364
1250 N Dartmouth Ave E-mail: email@hidden
Claremont, CA 91711
http://www.cs.hmc.edu/~tcb/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.