I\'m new to Objective-C and can\'t seem to get the memory management code right. I have the following code:
Media* myMedia = [self.myMediaManager getNextMedia];
At this point, since you are just learning, you should probably just start off using ARC with the iOS5 beta versions of XCode. It's good to have an understanding but using ARC will save you many potential pitfalls - by the time you learn enough to produce something iOS5 will be out. You can still build applications targeting iOS4, so you'll still be able to reach a lot of people.