• 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: Determining type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining type


  • Subject: Re: Determining type
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 23 Jun 2006 14:15:28 -0400

<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/ Articles/chapter_4_section_4.html#//apple_ref/doc/uid/TP30001163-CH7- BAJCDADF>

specifically, the Class Types section


On Jun 23, 2006, at 2:13 PM, Jerrod Fowkes wrote:

Hi,

This is probably another api question. I am wondering if there is something that can determine the datatype of an object (aka address).

For example, I have

id object; //actual object that has been alloc'ed

I need to know if object is an NSArray or a NSDictionary.

something like:

 if (getType(NSArray) == getType(object))

would be really nice. -Jerrod Fowkes

_______________________________________________ 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
References: 
 >Determining type (From: Jerrod Fowkes <email@hidden>)

  • Prev by Date: Re: Determining type
  • Next by Date: Re: Help with NSArrayController, NSTableView and NSOpenPanel
  • Previous by thread: Re: Determining type
  • Next by thread: Problem with NSWindowController subclass
  • Index(es):
    • Date
    • Thread