Objective-c memory management

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-04-02T21:27:09Z Indexed on 2010/04/02 21:33 UTC
Read the original article Hit count: 355

Filed under:
|
|

I have a method which runs this:

Track* track = [[Track alloc] init:[obj objectForKey:@"PersistentID"] :[obj objectForKey:@"Name"] :[obj objectForKey:@"Artist"] :(NSInteger*)[obj objectForKey:@"Total Time"] :(NSInteger*)[obj objectForKey:@"Play Count"]];
[self setCurrentTrack:(Track*) track];
[track release];

Do I have to release track?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about memory