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」クラスのオブジェクトです。
Objective-C(Xcode)での開発時に出る警告に関して
Re: Objective-C(Xcode)での開発時に出る警告に関して
「'struct Command'はObjective-Cの型と互換性がありません。'struct NSMutableArray*'は、第1引数を予測できません。」という意味の英語です。