• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Type/Creator codes for RTFD Documents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Type/Creator codes for RTFD Documents


  • Subject: Re: Type/Creator codes for RTFD Documents
  • From: Tod Cunningham <email@hidden>
  • Date: Fri, 13 Feb 2004 00:49:47 -0500

Thanks so much for your help, I finally got it working. It looks like the PkgInfo file overrides the Info.plist. I had misspelled 'EntX' as 'Entx' in the PkgInfo file. However, I had it correct in my Info.plist. With that small fix it works great. Thanks again for all your help. I owe you one...

Tod


On Feb 12, 2004, at 2:11 PM, Timothy Carl Buchheim wrote:

On Feb 11, 2004, at 9:06 PM, Tod Cunningham wrote:

Good catch, I can't believe I got the type/creator backwards! However, it still doesn't work. The icon doesn't change, and when double clicked TextEdit is launched. I tried both the PkgInfo route and the Info.plist route without any luck.

Hmm. It looks like you're doing everything correctly. If I copy/paste that and change "EntX" to "xcde" then I end up with an RTFD document which opens in Xcode.

Here are the files from my test document:

gouda:~/Desktop tim$ ls -l foobar.rtfd
total 168
drwxr-xr-x 4 tim tim 136 12 Feb 11:06 Contents
-rw-r--r-- 1 tim tim 51668 2 Feb 11:32 Picture 1.pdf
-rw-r--r-- 1 tim tim 24840 9 Feb 19:26 Picture 1.pdf.tiff
-rw-r--r-- 1 tim tim 464 9 Feb 19:26 TXT.rtf
gouda:~/Desktop tim$ ls -l foobar.rtfd/Contents
total 16
-rw-r--r-- 1 tim tim 333 12 Feb 11:06 Info.plist
-rw-r--r-- 1 tim tim 9 9 Feb 19:27 PkgInfo
gouda:~/Desktop tim$ cat foobar.rtfd/Contents/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>CFBundlePackageType</key>
<string>RTFD</string>
<key>CFBundleSignature</key>
<string>xcde</string>
</dict>
</plist>
gouda:~/Desktop tim$ cat foobar.rtfd/Contents/PkgInfo
RTFDxcde


--
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.
_______________________________________________
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.

References: 
 >Re: Type/Creator codes for RTFD Documents (From: Tod Cunningham <email@hidden>)
 >Re: Type/Creator codes for RTFD Documents (From: Timothy Carl Buchheim <email@hidden>)
 >Re: Type/Creator codes for RTFD Documents (From: Tod Cunningham <email@hidden>)
 >Re: Type/Creator codes for RTFD Documents (From: Timothy Carl Buchheim <email@hidden>)

  • Prev by Date: Re: At my wits end with NSSound!
  • Next by Date: -[NSTextView complete:] behavior with < 2 character word range
  • Previous by thread: Re: Type/Creator codes for RTFD Documents
  • Next by thread: Printing without NSPrintPanel
  • Index(es):
    • Date
    • Thread