Re: Passing arguments to threads?
Re: Passing arguments to threads?
- Subject: Re: Passing arguments to threads?
- From: Damien Bobillot <email@hidden>
- Date: Thu, 18 Nov 2004 17:35:39 +0100
Le 18 nov. 04, à 17:17, Dan Saul a écrit :
I'm relatively new to the objC Cocoa scene and I was wondering about
something taht should be relatively simple, i've looked at the
NSThread documentation and I was wondering how to detach a thread and
pass some arguments/values to it.
Is this possible?
Yes with the NSThread class method :
<x-tad-bigger>+ (void)detachNewThreadSelector:(SEL)aSelector toTarget:(id)aTarget withObject:(id)anArgument</x-tad-bigger>
there's only one argument, but you may given an NSArray, NSDictionary, C structure, any Objective-C object…
--
Damien alias Schmurtz
aim:goim?screenname=schmuuurtz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden