Creator Code for Packages
Creator Code for Packages
- Subject: Creator Code for Packages
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Tue, 31 Oct 2006 13:15:10 +0100
I have a document based application which creates rtf or rtfd things.
Overriding
fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL:e
rror:
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).
And: Where is the CreatorCode stored in the case of directories?
For files it seems to get stored in:
HFSPlusCatalogFile.FndrFileInfo.fdCreator - but I don't see anything
equivalent in HFSPlusCatalogFolder.
Gerriet.
_______________________________________________
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