Can't call methods on objects in pyObjC
问题 When I call setDelegate_ within my pyObjC code I get an AttributeError: 'tuple' object has no attribute 'setDelegate_' . My Code looks like this: def createMovie(self): attribs = NSMutableDictionary.dictionary() attribs['QTMovieFileNameAttribute'] = '<My Filename>' movie = QTMovie.alloc().initWithAttributes_error_(attribs, objc.nil) movie.setDelegate_(self) Edit I Found out that i can't use any instance methods with the movie object. 回答1: From your comment, it looks like QTMovie.alloc()