Re: [Pyobjc-dev] NSRect, structs
Brought to you by:
ronaldoussoren
From: Sean G. <pr...@cf...> - 2003-06-13 00:58:55
|
All, For reference purposes, I believe the solution to my problem is that, for NSRects, the bridge looks for a tuple of two tuples: ( ( x, y ), ( height, width ) ). I was able to use Foundation.NSRectFromString, as well, in the following way: >>> Foundation.NSRectFromString( "x = 0 y = 10 width = 20 height = 45" ) ((0.0, 10.0), (20.0, 45.0)) Anyway, I am not going to pursue my original goal for now, which was using NSProgressIndicators in the NSCells in NSTableViews, by returning them through the "value" function of a subclass of NSTableDataSource. I may pursue this later, so if anyone can point to some documents or examples (whatever language, not specifically python), I'd be grateful. Thanks, Sean On Thursday, June 12, 2003, at 08:44 PM, 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? > > Thanks, > Sean > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |