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
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 mails | Author | Date |
|---|---|---|
| Eddy Hatcher | Mar 24, 12:19 | |
| John C. Randolph | Mar 24, 12:45 | |
| Tony Becker | Mar 24, 13:35 | |
| Kyle Sluder | Mar 24, 15:50 | |
| Mike | Mar 25, 06:19 | |
| Randall Meadows | Mar 25, 22:07 |






Cocoa mail archive

