Re: Multiple methods named 'compare:' found
Re: Multiple methods named 'compare:' found
- Subject: Re: Multiple methods named 'compare:' found
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 28 Mar 2014 12:57:13 +0700
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