In my applicationDidFinishLaunching:
method, I create an object and call an asynchronous method on it, like so:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
Foo *foo = [[Foo alloc] init];
[foo asynchronousMethodWithCompletion:^{
// Location A
}];
// Location B
}
If I do not use ARC, where do I have to put [foo release]
? Inside the completion block (Location A) or right after the asynchronous method call (Location B)? Or doesn't it matter at all?