Memory management is being done manually, ARC is not used in this project..
The message object is created using alloc
init
and the code below is being called on background thread.
I pass a message object before the following call:
[self performSelectorOnMainThread:@selector(serverConnectionResult:) withObject: message waitUntilDone:NO];
After the call I want to do:
[message release];
I am confused whether I should do this, because I am concerned whether the message object will be always valid when serverConnectionResult
is called? Is the method call performSelectorOnMainThread
retaining the message object itself? What's the rule to know that the called method retains my passed object?