Multiple methods named...
Multiple methods named...
- Subject: Multiple methods named...
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sat, 16 Feb 2013 16:31:32 +0700
ClassA has a method:
-(RootA *)rootObject;
ClassB has a method:
-(RootB *)rootObject;
id someObject;
if ( something )
{
someObject = instance of ClassA;
}
else
{
someObject = instance of ClassB;
}
id someRoot = [ someObject rootObject ];
Here the compiler complains: "Multiple methods named 'rootObject' found".
What can I do to get rid of this warning? (Other than switching the warning off?)
Gerriet.
10.8.2, Xcode 4.6
_______________________________________________
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