|
From: Dan K. <da...@gm...> - 2007-06-10 07:16:13
|
The title is just what it says. Without a lot more understanding of the internals of HOC, I can't write an init method because its argument is a NewlyAllocated object and it needs to return one that isn't. The workaround, of course, is to have the code that creates your object use NSObject's init method instead, and then have a method myInit or something that does the actual work... This would even be perfectly fine, if there were a way to get the method to do that for itself, but there isn't, because, as a separate issue, you can't call superclass methods; any attempt winds up recursing instead. None of the examples feature init methods, because all the classes defined in Haskell in them are created in nib files. Well, I guess this is just a bug report, I haven't really got a question. I can do without init methods. -- Dan Knapp |