• 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: Comparing Objects' Classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Comparing Objects' Classes


  • Subject: RE: Comparing Objects' Classes
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Thu, 15 Jan 2004 10:34:03 -0500

Read the NSObject and NSObject protocol docs, especially isSubclassOfClass,
isKindOfClass and isMemberOfClass.

Jonathan

> -----Original Message-----
> From: email@hidden
> [mailto:email@hidden]On Behalf Of Kevin Wojniak
> Sent: Thursday, January 15, 2004 1:07 PM
> To: Cocoa-Dev
> Subject: Comparing Objects' Classes
>
>
> If I have an object, say ball and I want to see if it's of an
> NSDictionary or a BOOL or something else, how would I do this? I know I
> can check for it's existence with nil but I need to identify it's
> class...
>
> Maybe if ([ball class]==[NSDictionary class]) ??
>
> Many thanks,
> Kevin
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Comparing Objects' Classes (From: Kevin Wojniak <email@hidden>)

  • Prev by Date: Re: Comparing Objects' Classes
  • Next by Date: Re: xcode/gdb automation
  • Previous by thread: Re: Comparing Objects' Classes
  • Next by thread: Re: xcode/gdb automation
  • Index(es):
    • Date
    • Thread