• 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: Quincey Morris <email@hidden>
  • Date: Wed, 15 Feb 2012 09:39:30 -0800

On Feb 15, 2012, at 00:50 , Uli Kusterer wrote:

> Why would there ever be an object that is not -isEqual: to itself? Now you've lost me.

Sorry, it was a poor choice of words. I was just acknowledging the difference between (say) a NSMutableDictionary whose internal state changes over time without affecting the objects it's isEqual to (just itself, in this case) and NSMutableString, whose internal state changes over time and does affect what it's isEqual to.

There are, of course, potentially, objects that aren't isEqual to themselves. An object representing the current (running) time might be designed to fail [timeNow isEqual: timeNow]. But I can't think of an example that isn't pathological, and such objects weren't what I had in mind earlier.


_______________________________________________

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: copy & isEqual nightmares
      • From: Ken Thomases <email@hidden>
    • Re: copy & isEqual nightmares
      • From: Graham Cox <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>)

  • Prev by Date: Re: NSEvent locationInWindow undefined for non-mouse events, how to catch?
  • Next by Date: Re: NSEvent locationInWindow undefined for non-mouse events, how to catch?
  • Previous by thread: Re: copy & isEqual nightmares
  • Next by thread: Re: copy & isEqual nightmares
  • Index(es):
    • Date
    • Thread