[Pharo-project] Two methods I don't understand in FileDirectory

Sven Van Caekenberghe sven at beta9.be
Thu Feb 24 07:35:38 CET 2011

Hi Adrian,

On 24 Feb 2011, at 00:48, Adrien BARREAU wrote:

> Hello,
> I'm taking a look in the Files package, and I don't understand what pieces of information these two methods are manipulating:
> - getMacFileTypeAndCreator: fileName 
> - setMacFileNamed: fileName type: typeString creator: creatorString
> If somebody can explain me, it would be cool :)
> Thanks,
> Adrien.

In the past (before Mac OS X) and in some sense still, these were used instead of filename extensions to indicate the type (and creator) of a file.

See for example: http://en.wikipedia.org/wiki/File_format#Mac_OS_type-codes


More information about the Pharo-project mailing list