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

Comparing Objects' Classes


  • Subject: Comparing Objects' Classes
  • From: Kevin Wojniak <email@hidden>
  • Date: Thu, 15 Jan 2004 10:06:34 -0800

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.

  • Follow-Ups:
    • RE: Comparing Objects' Classes
      • From: "Jonathan E. Jackel" <email@hidden>
    • Re: Comparing Objects' Classes
      • From: j o a r <email@hidden>
  • Prev by Date: applescript transactions
  • Next by Date: Re: Comparing Objects' Classes
  • Previous by thread: Re: applescript transactions
  • Next by thread: Re: Comparing Objects' Classes
  • Index(es):
    • Date
    • Thread