Objective-C(Xcode)での開発時に出る警告に関して
Posted: 2011年2月22日(火) 02:51
Objective-C(Xcode)での開発時に出る警告に関して
Xcodeでビルドすると
drawClass = [[DrawClass alloc] initWithParam:self.currentObj];
上記文に、警告マークが付き、「Incompatible Objective-C types 'struct Command*',expected'struct NSMutableArray*' when passing argument 1
of'initWithParam:' from distinct Objective-C type 」
と出ます。動作自体は問題ないようなのですが、この警告はどういった意味なのでしょうか?。
「self.currentObj」は「Obj」クラスのオブジェクトです。
Xcodeでビルドすると
drawClass = [[DrawClass alloc] initWithParam:self.currentObj];
上記文に、警告マークが付き、「Incompatible Objective-C types 'struct Command*',expected'struct NSMutableArray*' when passing argument 1
of'initWithParam:' from distinct Objective-C type 」
と出ます。動作自体は問題ないようなのですが、この警告はどういった意味なのでしょうか?。
「self.currentObj」は「Obj」クラスのオブジェクトです。