• 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 'compare:' found
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple methods named 'compare:' found


  • Subject: Multiple methods named 'compare:' found
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 28 Mar 2014 12:40:33 +0700

I have:

id a,b;

if (something)
{
	a = @(43);
	b = some other NSNumber;
}
else
{
	a = [ NSDate date];
	b = some other NSDate;
}

if ( [ a compare: b] == NSOrderedDescending ) then ...

Xcode Version 5.1 (5B130a) warns me that "Multiple methods named 'compare:' found".

How do I switch off this warning (in this line only)?
I do not want to switch off the warning for the whole file, just for this special line.

Gerriet.


_______________________________________________

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 'compare:' found
      • From: John McCall <email@hidden>
    • Re: Multiple methods named 'compare:' found
      • From: Quincey Morris <email@hidden>
  • Prev by Date: IKSaveOptions have trouble on Mavericks
  • Next by Date: Re: Multiple methods named 'compare:' found
  • Previous by thread: IKSaveOptions have trouble on Mavericks
  • Next by thread: Re: Multiple methods named 'compare:' found
  • Index(es):
    • Date
    • Thread