[Pyobjc-dev] Class NSDictionary does not respond to dictionaryWithContentsOfFile
Brought to you by:
ronaldoussoren
From: Bill N. <no...@sn...> - 2003-01-20 16:47:09
|
When loading a nib file, I now get the following traceback: Traceback (most recent call last): File "/usr/local/sources/python/pyobjc/Lib/AppKit/NibClassBuilder.py", line 471, in ? commandline() File "/usr/local/sources/python/pyobjc/Lib/AppKit/NibClassBuilder.py", line 467, in commandline printTemplate(nibFiles) File "/usr/local/sources/python/pyobjc/Lib/AppKit/NibClassBuilder.py", line 443, in printTemplate extractClasses(path=path) File "/usr/local/sources/python/pyobjc/Lib/AppKit/NibClassBuilder.py", line 139, in extractClasses self._extractClassesFromNibFromPath(path) File "/usr/local/sources/python/pyobjc/Lib/AppKit/NibClassBuilder.py", line 159, in _extractClassesFromNibFromPath nibInfo = NSDictionary.dictionaryWithContentsOfFile_( File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ posixpath.py", line 48, in join for b in p: objc.error: Class NSDictionary does not respond to dictionaryWithContentsOfFile: This is with the latest CVS pyobjc and very recent python (from cvs). The following line in NibClassBuilder.py raises the exception: nibInfo = NSDictionary.dictionaryWithContentsOfFile_( os.path.join(path, 'classes.nib')) but creating a temp string works fine: nibPath = os.path.join(path, 'classes.nib') nibInfo = NSDictionary.dictionaryWithContentsOfFile_( nibPath) Ideas? --Bill Noon Northeast Regional Climate Center Cornell University |