• 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: Ben Kennedy <email@hidden>
  • Date: Fri, 17 Feb 2012 12:33:34 -0800

On 16 Feb 2012, at 3:54 pm, Ken Thomases wrote:

> In other words, you're being silly.  It's clear to everyone that -[NSString isEqual:] must have semantics built on -[NSString isEqualToString:], which is clearly documented.

What value does NSString's isEqualToString: bring to the table over its implementation of isEqual?  Is it just a matter of foregoing an 'if ([obj isKindOfClass:[NSString class])' construct at the front end?  Put another way, why does NSString provide isEqualToString: as a distinct method?

b

--
Ben Kennedy, chief magician
Zygoat Creative Technical Services
http://www.zygoat.ca


_______________________________________________

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: Charles Srstka <email@hidden>
    • Re: copy & isEqual nightmares
      • From: Ken Thomases <email@hidden>
    • Re: copy & isEqual nightmares
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: copy & isEqual nightmares
      • From: Mike Abdullah <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>)
 >Re: copy & isEqual nightmares (From: Ken Thomases <email@hidden>)
 >Re: copy & isEqual nightmares (From: Quincey Morris <email@hidden>)
 >Re: copy & isEqual nightmares (From: Ken Thomases <email@hidden>)
 >Re: copy & isEqual nightmares (From: Quincey Morris <email@hidden>)
 >Re: copy & isEqual nightmares (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Bogus Illegal Datasource Warning
  • Next by Date: Re: How EXC_BAD_ACCESS in objc_msgSend if receiver, parms OK?
  • Previous by thread: Re: copy & isEqual nightmares
  • Next by thread: Re: copy & isEqual nightmares
  • Index(es):
    • Date
    • Thread