On 31 Jul 2008, at 10:04, Yen-Ju Chen wrote: > 1. How to use NSRect and NSPoint in Smalltalk ? I saw something like > @NSViewMinXMargin constant, but have no idea about using C structure > in Smalltalk.
I believe Quentin is writing a class which auto-boxes these types. > 2. How to use GNUstep function in Smalltalk, like NSMaxX(), > NSStringFromClass(), etc ? You can't. Type information is not available for these at runtime, which makes calling them very dangerous from Smalltalk. Probably the best thing to do with these is create an NSFunctions class which has a class method for each C function. Patches welcome... David _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
