After reading the Memory Management Guide I am trying to get my head around what is happening here My understanding "so far" is ...
- (EngineClass *)engine {
return [[engine retain] autorelease];
}
- I am returning a pointer to an Engine object.
- The retain count of the object is incremented to record we are making a new pointer to the object
- Balance the above retain by specifying an autorelease at some future point.
Am I on the right track?
cheers -gary-