• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Passing arguments to threads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing arguments to threads?


  • Subject: Re: Passing arguments to threads?
  • From: Shawn Erickson <email@hidden>
  • Date: Thu, 18 Nov 2004 08:34:08 -0800


On Nov 18, 2004, at 8:17 AM, Dan Saul wrote:

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?

You did note the following method right?

<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSThread.html#//apple_ref/doc/uid/20000311/ CHDEBGEC>

If you saw this method then consider that the argument object that you can send in could anything, say an NSDictionary with key/value pairs for your "arguments/values" or an NSArray with index/value for your arguments. Of course you could configure the object that is the target of the selector with the data it needs as well before calling this method. etc.

-Shawn

_______________________________________________
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


References: 
 >Passing arguments to threads? (From: Dan Saul <email@hidden>)

  • Prev by Date: Re: Passing arguments to threads?
  • Next by Date: Re: Passing arguments to threads?
  • Previous by thread: Re: Passing arguments to threads?
  • Next by thread: Re: Passing arguments to threads?
  • Index(es):
    • Date
    • Thread