• 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
Comparing two object classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Comparing two object classes


  • Subject: Comparing two object classes
  • From: Tito Ciuro <email@hidden>
  • Date: Thu, 30 Jun 2005 23:42:21 -0400

Hello,

A method receives an object of type id. I want to make sure that the object is a string, so I'm using isKindOfClass. The problem is that sometimes the object is a NSConstantString and other times a NSCFString, so when the object passed is NSConstantString, isKindOfClass returns NO. Since both objects are strings, what test/ comparison would return YES?

Thanks,

-- Tito
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Comparing two object classes
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: NSCell's cellSize per table column row?
  • Next by Date: Re: Comparing two object classes
  • Previous by thread: NSCell's cellSize per table column row?
  • Next by thread: Re: Comparing two object classes
  • Index(es):
    • Date
    • Thread