• 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: Creator Code for Packages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creator Code for Packages


  • Subject: Re: Creator Code for Packages
  • From: Sherm Pendley <email@hidden>
  • Date: Tue, 31 Oct 2006 07:48:26 -0500

On Oct 31, 2006, at 7:15 AM, Gerriet M. Denkmann wrote:

I have a document based application which creates rtf or rtfd things.

Overriding fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL :error:
I set NSFileHFSCreatorCode.


This has the intended result that rtf files created by my app can be opened with TextEdit, while my app is the default.

How can I get the same for rtfd-directories (folders/ packages) - i.e. a directory which can be opened with TextEdit, while my app is the default ?
(I do not want my app to be the default for all rtfd directories, only for stuff it has created).

From "Document Packages", at <http://tinyurl.com/tx595> (*):

"Document packages should always have an extension to identify them— even though that extension may be hidden by the user. The extension allows the Finder to identify your document directory and treat it as a package. You should never associate a document package with a MIME type or 4-byte OS type."

*Long URL: <http://developer.apple.com/documentation/CoreFoundation/ Conceptual/CFBundles/Concepts/DocumentBundles.html>

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Creator Code for Packages
      • From: "Gerriet M. Denkmann" <email@hidden>
    • Re: Creator Code for Packages
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Creator Code for Packages (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Your information [:.VIRUS.:]
  • Next by Date: [NewB] calling shell from ObjC within a PreferencesPane
  • Previous by thread: Creator Code for Packages
  • Next by thread: Re: Creator Code for Packages
  • Index(es):
    • Date
    • Thread