Skip navigation.
 
mlPerform selector on thread
FROM : Eddy Hatcher
DATE : Mon Mar 24 12:19:01 2008

Hi,

I am detaching a selector "A" on a separate thread in another class. 
In this selector I am calling another selector "B"  in the same class 
using [self performSelector:@selector(B)];

  Which thread will this selector "B" be run on? The main, or the one 
i created for "A". I want selector "B" to be run on the same thread as 
for "A". Hence I thought to call:

- (void)performSelector:(SEL)aSelector onThread:(NSThread *)thr 
withObject:(id)arg waitUntilDone:(BOOL)wait

but is that really necessary or will selector B automatically be run 
on the same thread as for "A" since I am calling it from inside 
selector "A"

Hope this is clear.

Thanks in advance

Related mailsAuthorDate
mlPerform selector on thread Eddy Hatcher Mar 24, 12:19
mlRe: Perform selector on thread John C. Randolph Mar 24, 12:45
mlRe: Perform selector on thread Tony Becker Mar 24, 13:35
mlRe: Perform selector on thread Kyle Sluder Mar 24, 15:50
mlRe: Perform selector on thread Mike Mar 25, 06:19
mlRe: Perform selector on thread Randall Meadows Mar 25, 22:07