Main thread to another
Main thread to another
- Subject: Main thread to another
- From: Dustin Mierau <email@hidden>
- Date: Mon, 10 Dec 2001 01:59:21 -0800
I am storing the value of [NSThread currentThread] in an NSArray
which I am passing to a new NSThread. Problem is, when I enter
in the new thread, the current thread now changes, obviously,
and so does this retained NSThread I stored NSArray. Basically I
just want a pointer to the main thread from another thread,
anyone have any suggestions?
I have seen this method used in a few other places (passing in
[NSThread currentThread]) and the examples seem to think it
works, but it really doesn't seem to.
I am using this InterThreadMessaging library to call methods of
objects in other threads, and I would like to call a method in
the main thread from some other thread.
thread thread thread.
thanks,
-dustin