From: Wolfgang T. <wol...@gm...> - 2005-09-30 06:17:13
|
> 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. > > This seems to be a similar problem to the one I was describing in > my last message in regards to NSLog(). Is there some way to access > these functions from within Haskell with the use of HOC, or do I > manually have to wrangle in the functions through ffi? Is this an > area which just needs development, and will be supported in future > versions? It is an area that needed development until a few days ago :-). Functions with a fixed number of arguments are now imported automatically in the bindings (as long as all the argument types are supported by hoc). Supporting variable-argument functions like NSLog would be quite hard and I think NSLog alone is not worth it - it's easier to just write somehting to stderr yourself. Cheers, Wolfgang |