Issues

Issue #56 resolved

calling super in classmethod from pyobjc 2.3 to pyobjc 2.6b1 fails

AcclivityNYC
created an issue

I want to report this as n issue so people google for this can find this fix.

class Controller(NSResponder):

@classmethod
def allocWithZone_(cls, zone):
    return super(Controller, cls).allocWithZone_(zone)

Comments (3)

  1. AcclivityNYC reporter

    Solution was

    import objc
    
    class Controller(NSResponder):
    
        @classmethod
        def allocWithZone_(cls, zone):
            return objc.super(Controller, cls).allocWithZone_(zone)
    
  2. Log in to comment