Re: multiple methods named 'xxx' found.
Re: multiple methods named 'xxx' found.
- Subject: Re: multiple methods named 'xxx' found.
- From: Charles Steinman <email@hidden>
- Date: Thu, 4 Oct 2007 23:23:52 -0700 (PDT)
--- Nelson Santos <email@hidden> wrote:
> Hi all,
>
> I found the below thread messages on the
> Cocoabuilder site. Please
> have a quick look. I understand what YMMV is
> saying, but does anyone
> know the reason why that warning occurs? Wouldn't
> the fact that the
> two methods are defined in different classes enough
> to allow multiple
> methods with the same name and different arguments
> to exist?
I think it was explained pretty clearly in that
thread. Yes, the two methods can both exist, but the
compiler does not necessarily know which one you meant
to call at a given point.
Cheers,
Chuck
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
_______________________________________________
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