• 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: getting the type of an object of a Dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the type of an object of a Dictionary


  • Subject: Re: getting the type of an object of a Dictionary
  • From: j o a r <email@hidden>
  • Date: Mon, 5 May 2003 08:01:33 +0200

What about:

BOOL isString = [[myDict objectForKey: @"someKey"] isKindOfClass: [NSString class]];

j o a r

On Monday, May 5, 2003, at 07:30 Europe/Stockholm, Salanki Benjamin wrote:

is there a way to find out if an object for a given key of a Dictionary is of a given type, say an NSString or an NSMutable Dictionary?
_______________________________________________
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: 
 >getting the type of an object of a Dictionary (From: Salánki Benjámin <email@hidden>)

  • Prev by Date: getting the type of an object of a Dictionary
  • Next by Date: Re: more NSEvent stuff
  • Previous by thread: getting the type of an object of a Dictionary
  • Next by thread: Re: getting the type of an object of a Dictionary
  • Index(es):
    • Date
    • Thread