close

id:

idObjective-C中用的型態,類似於C/C++中的void*,可以指向任何繼承NSObject類別的物件

定義如下:

typedef struct objc_object {

        Class isa;

}*id;

nil/Nil:

nil指向一個空類別的物件(id of Nil instance)

Nil指向一個空的類別(id of Nil class)

#define nil __DARWIN_NULL

#define Nil __DARWIN_NULL

#define __DARWIN_NULL ((void*)0)

IMP:

代表一個函式指標

Typedef id (*IMP)(id, SEL, …);

SEL:

代表method名稱

Typedef struct objc_selector *SEL

arrow
arrow
    全站熱搜

    sanhue 發表在 痞客邦 留言(0) 人氣()