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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to