Two methods I don't understand in FileDirectory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Two methods I don't understand in FileDirectory

Adrien BARREAU
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.
Reply | Threaded
Open this post in threaded view
|

Two methods I don't understand in FileDirectory

Sven Van Caekenberghe
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

Sven