I'm looking at how to use NSNotificationCenter (which is needed for things like external gamecontrollers) and I have no idea how to make it work. I tried quite a bit but now I'm stuck with this little code:
from objc_util import *
Notification_Center = ObjCClass('NSNotificationCenter').defaultCenter()
def test(arg):
print 'Received notification!'
class test_c():
pass
Notification_Center.addObserver_selector_name_object_(test_c,test,'moetest',None)
Notification_Center.postNotificationName_object_('moetest',self)
It throws a wrong argument type exception.