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

Re: Multiple methods named 'compare:' found


  • Subject: Re: Multiple methods named 'compare:' found
  • From: Alex Zavatone <email@hidden>
  • Date: Fri, 28 Mar 2014 09:46:07 -0400

Would you consider comparing the type or class of the items in question first?

On Mar 28, 2014, at 1:57 AM, Gerriet M. Denkmann wrote:

>
> On 28 Mar 2014, at 12:46, Quincey Morris <email@hidden> wrote:
>
>> On Mar 27, 2014, at 22:40 , Gerriet M. Denkmann <email@hidden> wrote:
>>
>>> I do not want to switch off the warning for the whole file, just for this special line.
>>
>> IIRC, this should do it:
>>
>>> if ( [(id) a compare: b] == NSOrderedDescending ) then …
>>
>> without having to delve into pragmas.
>>
>
> Seems not to work: same warning.
>
> This works:
> if ( [ (NSDate *)a compare: b] == NSOrderedDescending ) then …
>
> but it is kind of a lie (or at least misleading or confusing): "a" is only *sometimes* an NSDate.
>
>
> Kind regards,
>
> 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


_______________________________________________

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: altotest1 <email@hidden>
References: 
 >Multiple methods named 'compare:' found (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Multiple methods named 'compare:' found (From: Quincey Morris <email@hidden>)
 >Re: Multiple methods named 'compare:' found (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Multiple methods named 'compare:' found
  • Next by Date: Re: NSInteger/NSUInteger Considerations (64 bit)
  • Previous by thread: Re: Multiple methods named 'compare:' found
  • Next by thread: Re: Multiple methods named 'compare:' found
  • Index(es):
    • Date
    • Thread