• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Multiple methods named...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Multiple methods named...
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Problem with NSPersistentStore
  • Next by Date: Re: Problem with NSPersistentStore
  • Previous by thread: Re: Problem with NSPersistentStore
  • Next by thread: Re: Multiple methods named...
  • Index(es):
    • Date
    • Thread