Re: [Obj-C Compiler Bug?] Two different classes declaring a message with the same name - compiler warning
Re: [Obj-C Compiler Bug?] Two different classes declaring a message with the same name - compiler warning
- Subject: Re: [Obj-C Compiler Bug?] Two different classes declaring a message with the same name - compiler warning
- From: "Michael Ash" <email@hidden>
- Date: Wed, 15 Oct 2008 10:17:47 -0400
On Wed, Oct 15, 2008 at 6:50 AM, Jonathan del Strother
<email@hidden> wrote:
> Presumably you could override +(id)alloc to be +(MyClass)alloc on
> classes that you knew implemented ambiguous init methods?
You could, but then every subclass of your class which defines its own
init methods is then forced to override +alloc as well. This is, of
course, the reason why +alloc and -init return id in the first place.
Mike
_______________________________________________
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