Re: modifying self in init
Re: modifying self in init
- Subject: Re: modifying self in init
- From: Ondra Cada <email@hidden>
- Date: Thu, 16 Sep 2004 13:36:23 +0200
Ben,
On 16.9.2004, at 8:41, Ben Golding wrote:
Anyway, that's how I'd do it which would avoid having to fiddle with
reassigning to self altogether.
Actually you did not: you just switched from init-based to
class-convenience-method-based subclass selection.
Both have their merits, of course -- depends on the usage. The
class-convenience-method-based selection is generally simpler and
perhaps a tad cleaner, too. Often though you don't want to make the
abstract class even if the alloc/init pair is used, in which case it is
not sufficient, and you have to implement the init-based one (or both).
Also, in some cases of more complicated initialization the init-based
selection may prove simpler.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden