• 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: file extensions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file extensions


  • Subject: Re: file extensions
  • From: James McCartney <email@hidden>
  • Date: Tue, 10 Sep 2002 12:01:48 -0700

On Tuesday, September 10, 2002, at 10:28 AM, Andy Lee wrote:

I think the issue is not how you write the file, it's a matter of application settings.

Under the "Targets" tab in PB you can specify file extensions that your app recognizes. In the Jaguar PB, it's in aitem called "Document Types" in a section called "Info.plist Entries". I think if you add the .rtf and .sc file extensions and rebuild your app, the Finder will know to consider your app as a candidate for opening those files. You might have to log out and back in.

--Andy


I already have this set up as follows (in XML, sorry, since I can't copy/paste from the PB dialog). Anyway this is mostly the same as TextEdit's Document Types settings.
:

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>rtf</string>
<string>RTF</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>rtf.icns</string>
<key>CFBundleTypeName</key>
<string>NSRTFPboardType</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>RTF </string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>NSDocumentClass</key>
<string>MyDocument</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>rtfd</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>rtfd.icns</string>
<key>CFBundleTypeName</key>
<string>NSRTFDPboardType</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>NSDocumentClass</key>
<string>MyDocument</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>txt</string>
<string>TXT</string>
<string>text</string>
<string>*</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>txt.icns</string>
<key>CFBundleTypeName</key>
<string>NSStringPboardType</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>NSDocumentClass</key>
<string>MyDocument</string>
</dict>
<dict>
<key>CFBundleTypeIconFile</key>
<string>txt.icns</string>
<key>CFBundleTypeName</key>
<string>Apple SimpleText document</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>TEXT</string>
<string>sEXT</string>
<string>ttro</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>NSDocumentClass</key>
<string>MyDocument</string>
</dict>
</array>


--
--- james mccartney email@hidden <http://www.audiosynth.com>
SuperCollider - a real time synthesis programming language for the PowerMac.
<ftp://www.audiosynth.com/pub/updates/SC2.2.16.sea.hqx>
_______________________________________________
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: file extensions (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Getting NSView mousedown event postion?
  • Next by Date: Re: pathForResource with nil Type
  • Previous by thread: Re: file extensions
  • Next by thread: Troubles with popUpCell and tableview
  • Index(es):
    • Date
    • Thread