Re: Confused about superclass initializers

2009-03-27 Thread Roland King
and if I'm a moron and subclass a Foo which is ... singleton or returns one specific instance for its parameters then .. I get some cached Foo and it's my own stupid fault. [ self alloc ] makes sense .. most 'bait and switch' initializers would call that, and of course that goes back to the

Re: Confused about superclass initializers

2009-03-27 Thread Alexander Spohr
Am 27.03.2009 um 15:53 schrieb Roland King: I've thought myself into a hole in a subclass here If I have a class Foo with a subclass Bar, which adds say 2 new variables, in Bar's init method I do the usual self = [ super init ]; after someone called me with Bar *myBa

Re: Confused about superclass initializers

2009-03-27 Thread Michael Ash
On Fri, Mar 27, 2009 at 10:53 AM, Roland King wrote: > I've thought myself into a hole in a subclass here > > If I have a class Foo with a subclass Bar, which adds say 2 new variables, > in Bar's init method I do the usual > >        self = [ super init ]; > > after someone called me with > >

Confused about superclass initializers

2009-03-27 Thread Roland King
I've thought myself into a hole in a subclass here If I have a class Foo with a subclass Bar, which adds say 2 new variables, in Bar's init method I do the usual self = [ super init ]; after someone called me with Bar *myBar = [ [ Bar alloc ] init ]; at the point I cal