Re: [Pyobjc-dev] NSRect?
Brought to you by:
ronaldoussoren
From: Ronald_Oussoren <ous...@ci...> - 2002-12-02 15:16:30
|
On Sun, 1 Dec 2002 23:46:06 -0700, Jiva DeVoe wrote > So where's NSRect fall in the scheme of pyobjc? NSRect, and struct-types in general, are converted to/from Python tuples. For NSRect this tuple is of the form ((origin_x, origin_y), (size_x, size_y)). The translation is fully automatic based on the signature of the struct (the string "returned" by @encode(NSRect)). Ronald |