Please clarify, how to deal with returned objects from methods?
Below, I get employee details from GeEmployeetData function with autorelease,
- Do I have to retain the returned object in Process method?
Can I release *emp in Process function?
-(void) Process { Employee *emp = [self GeEmployeetData] }
+(Employee*) GeEmployeetData{
Employee *emp = [[Employee alloc]init]; //fill entity
return [emp autorelease]; }