Objective-Cで以下のような記述があります。
@interface
@implementation
これはCやJavaには存在しない記述ですが、
「コンパイラディレクティブ」を意味します。
これは、コンパイラに対してクラスの宣言や実装を
明示的に記載してあげるためのものです。
コンパイラディレクティブの一覧です。
●クラス、カテゴリ、プロトコルの宣言・定義
@interface
@implementation
@protocol
@end
●インスタンス変数
@private
@protected
@public
●例外処理
@try
@throw
@catch
@finally
●その他
@class
@selecter(method)
→methodを識別するコンパイル済みのセレクタ
@protocol(name)
@encode(spec)
@defs(class_name)
@"string"
@synchronized
@interface
@implementation
これはCやJavaには存在しない記述ですが、
「コンパイラディレクティブ」を意味します。
これは、コンパイラに対してクラスの宣言や実装を
明示的に記載してあげるためのものです。
コンパイラディレクティブの一覧です。
●クラス、カテゴリ、プロトコルの宣言・定義
@interface
@implementation
@protocol
@end
●インスタンス変数
@private
@protected
@public
●例外処理
@try
@throw
@catch
@finally
●その他
@class
@selecter(method)
→methodを識別するコンパイル済みのセレクタ
@protocol(name)
@encode(spec)
@defs(class_name)
@"string"
@synchronized