Exemplo n.º 1
0
 def exampleMethod_(self, block):
     ObjCBlock(block, c_void_p, c_int, c_int)(2, 3)
Exemplo n.º 2
0
 def exampleMethod_(self, block):
     ObjCBlock(block, None, int, int)(2, 3)
Exemplo n.º 3
0
 def test_block_property_pytypes(self):
     BlockPropertyExample = ObjCClass("BlockPropertyExample")
     instance = BlockPropertyExample.alloc().init()
     result = ObjCBlock(instance.blockProperty, int, int, int)(1, 2)
     self.assertEqual(result, 3)