Re: OSType
Re: OSType
- Subject: Re: OSType
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 14 Apr 2003 23:53:59 -0700
On Monday, April 14, 2003, at 02:12 PM, Georges Engelmann wrote:
can anyone tell me how to get the FileType of a file.
-> NSFileManager
I dont know how to use the OSType
OSType is a Carbon typedef. According to MacTypes.h, OSType is a
FourCharCode, and a FourCharCode is a "32-bit value made by packing
four 1 byte characters together". It's typically used sort of like a
string object, but you use single quotes instead of double quotes, like
this:
OSType finderType = 'FNDR';
if (someType == 'APPL')
etc.
If you really need it, I believe I saw a method in the OmniFoundation
framework that will turn a FourCharCode-like typedef into an NSString...
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
"Building the future and keeping the past alive are one and the same
thing." - Metal Gear Solid 2
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >OSType (From: Georges Engelmann <email@hidden>) |