[Pyobjc-dev] NSRects and NSPoints as tuples...
Brought to you by:
ronaldoussoren
From: Dinu G. <gh...@da...> - 2003-01-08 16:56:20
|
I've read somewhere and experienced now myself that NSRects and NSPoints are mapped to 2-2 and 2-tuples of numbers respectively. While this is surely more convenient and more Pythonic in most cir- cumstances I feel like it has the drawback that existing Cocoa code calling attributes like size, width/height or x/y of NSRect will need to be "ported" to the more Pythonic way in a more than just syntactical fashion. In this case it means going from rather clear names to numeric indices, which have a higher potential to confuse their users. Am I correctly assuming that this is working "as designed", then? ;-) Dinu -- Dinu C. Gherman ...................................................................... "I tremble for my country when I reflect that God is just, that His justice will not sleep forever." (Thomas Jefferson) |