Re: some NSThread questions
Re: some NSThread questions
- Subject: Re: some NSThread questions
- From: Koen van der Drift <email@hidden>
- Date: Wed, 2 Jun 2004 18:21:35 -0400
On Jun 1, 2004, at 11:16 PM, Louis C. Sacha wrote:
2) running the code that is used in the detached thread as a tool
instead, using NSTask, since as a seperate process the task is easier
to control from outside code.
The second option (using a separate task) is significantly better than
the first (turning off the output), but it might not be very efficient
if you are dealing with large amounts of data that are already loaded
into your application's memory.
That also sounds like a good plan. I did some reading on NSTask and all
the example codes I found use an unix application in /usr/bin. Can I
also use NSTask with an application that is in the same XCode project?
If yes, can I just add the compiled binary to the Resources folder? Or
should I make two targets in the same XCode project , one for the
command line tool, and one for the Cocoa GUI?
thanks,
- Koen.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.