Re: [Pyobjc-dev] NSRect, structs
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-06-13 05:41:17
|
On Friday, Jun 13, 2003, at 02:44 Europe/Amsterdam, Sean Gilbertson wrote: > Hello all, > > I need to make an NSRect. I know there is an NSMakeRect function, > but it doesn't seem to be in Foundation or AppKit. I have tried > making an NSObject and assigning it attributes, but no luck there: The > bridge expects a "struct." Any ideas for what I should do? myrect = ((x, y), (h, w)) If you're using CVS: myrect = AppKit.NSMakeRect(x, y, h, w) Structs are represented as tuples when using PyObjC. Ronald |