I have a piece of code which will run only once in the background when the app loads. I don't want to worry about memory management of the NSOperationQueue *, can I autorelease
it?
NSOperationQueue *queue = [[NSOperationQueue alloc] init];
NSInvocationOperation *op = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(oneTimeTask) object:nil];
[queue addOperation:op];
[op release];
[queue autorelease];
Thanks