On Wed, Oct 15, 2008 at 6:50 AM, Jonathan del Strother
<[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to