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 protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]