Perform selector on thread
Perform selector on thread
- Subject: Perform selector on thread
- From: Eddy Hatcher <email@hidden>
- Date: Mon, 24 Mar 2008 12:19:01 +0100
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden