[Pyobjc-dev] missing NSHFSTypeCodeFromFileType
Brought to you by:
ronaldoussoren
From: David E. <epp...@ic...> - 2003-03-01 18:41:18
|
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, >>> from Foundation import NSHFSTypeCodeFromFileType Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: cannot import name NSHFSTypeCodeFromFileType appending an underscore also fails. Are they missing from pyobjc or am I looking in the wrong place? I guess it wouldn't be too hard to roll my own but using the standard functions would be better... -- David Eppstein http://www.ics.uci.edu/~eppstein/ Univ. of California, Irvine, School of Information & Computer Science |