Re: [Pyobjc-dev] missing NSHFSTypeCodeFromFileType
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-03-01 19:36:56
|
On Saturday, Mar 1, 2003, at 19:02 Europe/Amsterdam, David Eppstein wrote: > According to Cocoa Developer Documentation > File, Resource, and > Process Management > File Management > Low-level File Management, > >> The Foundation Kit defines the following functions to convert between >> a >> classic HFS file type and an encoded string: >> >> NSString *NSFileTypeForHFSTypeCode(OSType hfsTypeCode); >> OSType NSHFSTypeCodeFromFileType(NSString *fileType); >> NSString *NSHFSTypeOfFile(NSString *filePath); > > However, I can't find these functions, > That doesn't surprise me, the generator scripts don't know about OSType and nobody got around to implementing these manually. BTW. The last function is present in package Foundation. Adding the other two shouldn't be two hard. Unless someone beats me to it, I'll add them early next week. Note to self: Use PyMac_GetOSType and PyMac_BuildOSType for translating OSType to/from a python value (for compatibility with MacPython). Ronald |