Welcome to Programming LiveCode Q&A, where you can ask questions and receive answers from other members of the community.

Please, ask questions about the book only. If possible, mention section or page number. Don't ask for opinions, ask clear and direct questions only.

Go to main site

Quick Links

Frequently Asked Questions

Errata (1st print)

File signatures for Mac

0 votes
p. 201, second paragraph: (Mac OS 10 standalones) The document type can be any code you like [...]

If you want a really unique signature (creator code) for your application's files, see indirections at:

https://developer.apple.com/support/mac/creator-code-registration.html

(the URL given in the dictionary for fileType doesn't work any more)
asked Jun 11, 2013 by jhausser (730 points)

1 Answer

0 votes
It is good advice to create such a unique code, if your application is using documents. It should also be noted that Apple discourages using file type and creator codes. That's why this URL isn't in the book.

It is correct that one may use any file type for documents. Files are supposed to have a creator type, which determines which application is used to read the document. The file type information is solely for that particular application, which uses it to decide how to parse the data. Obviously, it is not a good idea to use very well-known and commonly used file types, such as PICT, JPEG and TEXT, for custom file formats.
answered Jun 11, 2013 by mark (3,090 points)
...