What is the different between an id and NSObject in Objective C?

Posted by Tattat on Stack Overflow See other posts from Stack Overflow or by Tattat
Published on 2010-05-23T10:48:57Z Indexed on 2010/05/23 10:50 UTC
Read the original article Hit count: 224

Filed under:

What is the different between this:

id:

#import <objc/Object.h>

@interface Forwarder : Object
{
    id something;
}

NSObject:

#import <objc/Object.h>

@interface Forwarder : Object
{
    NSObject *something;
}

Thz u.

© Stack Overflow or respective owner

Related posts about objective-c