Call me on my mobile. From: Alex Zavatone <z...@mac.com> Date: Friday, March 28, 2014 Subject: Re: Multiple methods named 'compare:' found To: Gerriet M. Denkmann <gerr...@mdenkmann.de> Cc: Mailing Lists <cocoa-dev@lists.apple.com>
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 <quinceymor...@rivergatesoftware.com> wrote: > >> On Mar 27 , 2014, at 22:40 , Gerriet M. Denkmann <gerr...@mdenkmann.de> 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 (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/zav%40mac.com > > This email sent to z...@mac.com _______________________________________________ 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/altotest1%40aol.com This email sent to altote...@aol.com _______________________________________________ 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