アナライザーを実行したところ、コード内の行に関連付けることができない警告がいくつか見つかりました。どう対処したらいいのかわからない。それらをクリックすると、エディター内の適切なファイルが表示されますが、アナライザーの要約結果からそのことがわかります。これらのそれぞれが何を指しているのかわかりません。また、コードを1行ずつ実行するのは生産的ではありません(何を探しているのかわかりません)。
Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
Incorrect decrement of the reference count of an object that is not owned at this point by the caller
Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
Object sent -autorelease too many times
最後の警告として、自動リリースを削除しましたが、削除されましたが、returnステートメントで使用されているため、リリースする方法がわかりません。
- (Client*) createNewClient {
...
Client *client = [NSEntityDescription insertNewObjectForEntityForName:@"Client"inManagedObjectContext:dataInterface.managedObjectContext];
...
return client;
}
一般的に、これらをどうすればよいですか?