• 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: Objective-C question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C question


  • Subject: Re: Objective-C question
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 10 Feb 2009 13:18:14 -0500

On Tue, Feb 10, 2009 at 1:10 PM, Jean-Daniel Dupas
<email@hidden> wrote:
> Just for the record, you can also compare class, but not with the
> isKindOfClass: method.
>
> The method below is similar too ([value isKindOfClass:[NSString class]])
>
> [[value class] isSubclassOfClass:[NSString class]]

  Yes, to be clear: that's why I said "with this method". For some
reason I intuitively expect -isKindOfClass: to compare two classes as
+isSubclassOfClass: does. When I see the the full method signature
(including the -/+) I remember, but if I'm in the middle of writing
code, I forget which does which and complain when it fails. :-)

--
I.S.
_______________________________________________

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: 
 >Objective-C question (From: Andy Bettis <email@hidden>)
 >Re: Objective-C question (From: Mike Abdullah <email@hidden>)
 >Re: Objective-C question (From: "I. Savant" <email@hidden>)
 >Re: Objective-C question (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Folder watching
  • Next by Date: Re: One Shot Windows: WARNING
  • Previous by thread: Re: Objective-C question
  • Next by thread: Re: Objective-C question
  • Index(es):
    • Date
    • Thread