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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to