• 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 definitions of compare: -- design flaw?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple definitions of compare: -- design flaw?


  • Subject: Re: multiple definitions of compare: -- design flaw?
  • From: Bill Cheeseman <email@hidden>
  • Date: Fri, 11 Jul 2003 06:31:09 -0400

on 03-07-10 11:34 AM, Brent Gulanowski at email@hidden wrote:

> -compare: is implemented by NSString, NSNumber, and NSDate. That's
> great, except they each define the argument using their own class,
> instead of id. So if you call -compare:, you are guaranteed to get
> complaints from the compiler (and if you have -Wall set, you can't
> compile at all).

This complaint has been in the mailing list archives for more than two
years. Knowledgeable people seem to feel it is an error, but I see no sign
in the archives that anybody has actually reported it as a bug. Perhaps it's
too late to fix it and maintain backward compatibility.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >multiple definitions of compare: -- design flaw? (From: Brent Gulanowski <email@hidden>)

  • Prev by Date: Re: Sorting in an NSTableView
  • Next by Date: Re: borderless & resizable window: how?
  • Previous by thread: Re: multiple definitions of compare: -- design flaw?
  • Next by thread: Cocoa, QuickTime, and sequence grabbing...
  • Index(es):
    • Date
    • Thread