Case 1:
-(id)getAnObject{
Object *someObject = [[Object alloc] init];
//doing something
return someObject;
}
Case 2:
-(void)dealWithAnObject{
Object *someObject = [[Object alloc] init];
[assignTheObjectToOther someObject];
}
Both Case 1 and Case 2 have some warning in XCode, what should I do to deal with these two? thank you.