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
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
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
>
>
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