From: Ian Bloom <ian_m_bloom@ya...> - 2008-12-20 18:23:38
I'm doing some exploratory coding with subclassing NSOutlineView.
I want to override a method from NSView so I tried the code:
from Foundation import *
from AppKit import *
from PyObjCTools import NibClassBuilder
def adjustScroll_(self, proposedRect):
returnVal = super(CrimsonOutlineView, self).adjustScroll_(proposedRect)
print str(self)+" proposedRect_("+str(proposedRect) +") returns "+str(returnVal)
Pretty simple it just passes everything and prints the results to the console. But this causes a hard crash.
I know this has to do with NSRect being a basic struct and not an NSObject but I have no idea how to make it work.
Many thanks in advance and warm regards,