我有2种方法向我发出警告:
id LoadObjectFromFile(NSString* filename) {
if ((filename = DocumentPath(filename, NO))) {
return [NSKeyedUnarchiver unarchiveObjectWithFile: filename];
} else {
return nil;
}
}
BOOL saveObjectWithFile(NSString* filename, id object) {
if ((filename = DocumentPath(filename, YES))) {
return [NSKeyedArchiver archiveRootObject: object toFile: filename];
} else {
return NO;
}
}
这给我带来了“以前没有职能原型”的警告。
I d rather not just disable the warnings in xcode.
Where am I going wrong?