From: Jonathan P. <jp...@dc...> - 2005-11-28 10:01:34
|
On 26 Nov 2005, at 0:32, Rupert BARROW wrote: > > In MyObject, I have defined : > ns_overrides 'init' > MyObject.init > in which I make a call to super_initWithContents(value) > > This method is not found : > RBException_NameError, reason undefined method > `super:initWithContents:' for class `MyObject' The super_* method is only defined after calling ns_overrides. So, super_init is defined because you've overridden init, but super_initWithContents is not. Since initWithContents has not been overridden in your subclass, just call 'self.initWithContents(value)' - that should fall through to the superclass implementation. |