[Pyobjc-dev] import order dependency bug
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2002-11-27 16:29:02
|
If Foundation is imported before AppKit, it breaks the pass-by-reference mechanism. [bumbox:~] bbum% python Python 2.2 (#1, 07/14/02, 23:25:09) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from Foundation import * >>> from AppKit import NSWorkspace >>> NSWorkspace.sharedWorkspace().getInfoForFile_application_type_('/tmp') Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: Need 3 arguments, got 1 >>> [bumbox:~] bbum% python Python 2.2 (#1, 07/14/02, 23:25:09) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from AppKit import NSWorkspace >>> from Foundation import * >>> NSWorkspace.sharedWorkspace().getInfoForFile_application_type_('/tmp') (1, '/System/Library/CoreServices/Finder.app', '') >>> |