Re: Lack of Initializers or Factory Methods
Re: Lack of Initializers or Factory Methods
- Subject: Re: Lack of Initializers or Factory Methods
- From: Charles Steinman <email@hidden>
- Date: Mon, 3 Nov 2008 08:15:56 -0800 (PST)
--- On Mon, 11/3/08, Gordon Apple <email@hidden> wrote:
> Is there a basic assumption that such factory methods
> are implicitly
> redefined for all subclasses?
It's not implicitly redefined -- just inherited. One of the advantages of Objective-C's dynamic nature is that [[[self class] alloc] init] works correctly when you inherit it. If you find a constructor that isn't properly inherited, I'd say you should probably file a bug report. (Unless we're talking about some special case where subclassing doesn't make much sense, obviously.)
Cheers,
Chuck
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden