Skip to content

AttributeError: 'super' object has no attribute ... #549

@typemytype

Description

@typemytype

Describe the bug

Calling super() in a subclasses of NSObject (like a NSView) triggers an error.

import AppKit

class Sub(AppKit.NSView):

    def viewDidMoveToWindow(self):
        super().viewDidMoveToWindow()

print("has viewDidMoveToWindow:", "viewDidMoveToWindow" in dir(AppKit.NSView))

s = Sub.alloc().init()
s.viewDidMoveToWindow()

Platform information

  • 3.9 - 3.11
  • pyobjc 9.1.1

this worked fine in pyobjc 9.0.1

thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions