[Pyobjc-dev] **NSError handling in PyObjC 2.2
Brought to you by:
ronaldoussoren
From: Ian B. <ia...@on...> - 2009-06-26 14:32:20
|
Hey there, One of my users messaged me to let me know that my Cocoa plugin (written in Python using PyObjC with py2app) was failing to load on his machine. Turns out he was using PyObjC 2.2 beta 2, and it was dying because it wasn't handling an implicit **NSError argument. Here's the relevant Python code that was killing it: @objc.signature('B@:@') def performActionWithContext_error_(self, context): This function is defined by the program's protocol: - (BOOL)performActionWithContext:(id)context error:(NSError **)outError; Is PyObjC 2.2 no longer going to silently support **NSError parameters, or is this a known 2.2 bug? Ian |