[Pyobjc-dev] getRectsBeingDrawn:count: signature help
Brought to you by:
ronaldoussoren
From: Ted H. <ho...@ub...> - 2004-04-14 18:08:27
|
I would like to use getRectsBeingDrawn:count: in a python NSView subclass, but I don't know how to declare the signature properly. I tried: setSignatureForSelector('NSView', 'getRectsBeingDrawn:count:', 'v@:o^{_NSRect={_NSPoint=ff}{_NSSize=ff}}o^i') and I get a rect back, but the data is bogus (not surprisingly). If I use: setSignatureForSelector('NSView', 'getRectsBeingDrawn:count:', 'v@:o^^{_NSRect={_NSPoint=ff}{_NSSize=ff}}o^i') I get something back (a PyObjCPointer), but I don't know how to access it. What is the proper signature and usage of a method like this (ie one that returns a variable length list of struct through a pointer to a pointer). Thanks, Ted |