• 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: some NSThread questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: some NSThread questions
      • From: Charles PARNOT <email@hidden>
    • Re: some NSThread questions
      • From: Charles PARNOT <email@hidden>
References: 
 >Re: some NSThread questions (From: "Louis C. Sacha" <email@hidden>)

  • Prev by Date: Re: SEL and NSDictionary
  • Next by Date: Re: Retrieving AppleShare passwords from the Keychain
  • Previous by thread: Re: some NSThread questions
  • Next by thread: Re: some NSThread questions
  • Index(es):
    • Date
    • Thread