Commits

Bob Ippolito committed 58479ca

PyObjC 1.3

Comments (0)

Files changed (3)

Lib/objc/test/test_methods2.py

     nsinvoke_ok = 0
 
 NSArray = objc.lookUpClass('NSArray')
-NSObject = objc.lookUpClass('NSObject')
-
-
 
 # First make sure that the pass-by-reference methods have the correct signature
 setSignature = objc.setSignatureForSelector
 
 # FIXME
 import sys
-HAVE_BOOL=sys.platform == 'darwin'
+HAVE_BOOL = (objc.platform == 'MACOSX')
 if HAVE_BOOL: setSignature("PyObjC_TestClass1", "boolInOutArg:", "@@:N^B")
 if HAVE_BOOL: setSignature("PyObjC_TestClass1", "boolOutArg:", "v@:o^B")
 if HAVE_BOOL: setSignature("PyObjC_TestClass1", "boolInArg:", "@@:n^B")
 g_structTestStruct5_values = ((1, 2.5), (2, 4.5))
 
 
-class Python_TestClass (NSObject):
+class Python_TestClass (objc.lookUpClass("NSObject")):
 	def init(self):
 		self = super(Python_TestClass, self).init()
 		self.reset()

Modules/objc/pyobjc.h

  * Central include file for PyObjC. 
  */
 
-#define OBJC_VERSION "1.3b1"
+#define OBJC_VERSION "1.3"
 
 // Loading in AppKit on Mac OS X 10.3 results in
 // a bit less than 1500 classes.

Scripts/gen_test_methods.py

 
 # FIXME
 import sys
-HAVE_BOOL=sys.platform == 'darwin'
+HAVE_BOOL = (objc.platform == 'MACOSX')
 """
 
 PY_MIDTEXT="""
             fp.write('\n\n')
 
 
-print "------------- testbndl.m -----------"
+print "------------- testbndl2.m -----------"
 fp = open('Modules/objc/test/testbndl2.m', 'w')
 fp.write(OBJC_HEADER)
 emit_objc_interfaces(fp)
 fp.write('}\n')
 fp.close()
 
-print "------------- test_methods.py -----------"
+print "------------- test_methods2.py -----------"
 fp = open('Lib/objc/test/test_methods2.py', 'w')
 fp.write(PY_HEADER)
 emit_py_method_signatures(fp)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.