• 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: copy & isEqual nightmares
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copy & isEqual nightmares


  • Subject: Re: copy & isEqual nightmares
  • From: Graham Cox <email@hidden>
  • Date: Thu, 16 Feb 2012 08:59:08 +1100

On 16/02/2012, at 4:39 AM, Quincey Morris wrote:

> There are, of course, potentially, objects that aren't isEqual to themselves.


Surely the first thing that -isEqual: does is to trivially accept the case where self == otherObject? Certainly when I've implemented -isEqual: I do that as a matter of course. It's only when the addresses differ that you then look deeper to see whether they are equal in some other sense.

--Graham


_______________________________________________

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


References: 
 >copy & isEqual nightmares (From: James Maxwell <email@hidden>)
 >Re: copy & isEqual nightmares (From: Uli Kusterer <email@hidden>)
 >Re: copy & isEqual nightmares (From: Quincey Morris <email@hidden>)
 >Re: copy & isEqual nightmares (From: James Montgomerie <email@hidden>)
 >Re: copy & isEqual nightmares (From: Quincey Morris <email@hidden>)
 >Re: copy & isEqual nightmares (From: Uli Kusterer <email@hidden>)
 >Re: copy & isEqual nightmares (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: CGContextSaveGState
  • Next by Date: Re: [ Was NSReadPIxel ]
  • Previous by thread: Re: copy & isEqual nightmares
  • Next by thread: Re: copy & isEqual nightmares
  • Index(es):
    • Date
    • Thread