pyobjc 3.0.3 + protocols = how?

Issue #107 resolved
Markus Stenberg
created an issue


  • Python 2.7.5 (default, Mar 9 2014, 22:15:05) (default for Mavericks 10.9.5)
  • pip installed pyobjc 3.0.3


import objc
from Cocoa import *

NSApplicationDelegate = objc.protocolNamed('NSApplicationDelegate')

class Foo(NSObject, NSApplicationDelegate):


TypeError: Error when calling the metaclass bases class Foo does not correctly implement protocol NSApplicationDelegate: method release is not an instance method

It does not seem to find any NSObject-provided methods, which it seems to assume the Cocoa delegate protocols require (this is just one example among many). User error? Bug?

Comments (3)

  1. Log in to comment