Showing posts with label id. Show all posts
Showing posts with label id. Show all posts

Tuesday, September 10, 2013

What is "id" in Objective C

id

'id' is a typedef in objective C. This means "Pointer to an Object". This Object can be any object of Objective C.


typedef struct objc_class *Class;
typedef struct objc_object {
    Class isa;
} *id;


typedef struct objc_selector    *SEL;    
typedef id          (*IMP)(id, SEL, ...);