From: Wolfgang T. <wol...@gm...> - 2005-09-18 17:30:02
|
> I'm trying to write a custom NSView in Haskell. For academic > purposes, I'm just trying to provide a basic drawRect selector; one > which just draws a frame around the bounds of the view. However, I > am not seeing how to access the NSFrameRect() functions and friends. > Is this an area which just needs development, and will be supported > in future versions? Yes. Definitely needs development. Doing it by hand using the FFI is hard, as the FFI does not support passing structures like NSRect. For now, I recommend writing a small objective-c helper class that wraps those functions in static methods; this class can then be used more conveniently using declareClass, declareSelector and an instance declaration. About NSLog... variable argument functions are a nightmare and will probably never be properly supported. CHeers, Wolfgang |