• 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: NSTask - grep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask - grep


  • Subject: Re: NSTask - grep
  • From: Art Isbell <email@hidden>
  • Date: Tue, 10 Jul 2001 10:18:22 -1000

On Tuesday, July 10, 2001, at 06:46 AM, Markus Hitter wrote:

To access this from within C/ObjC code, the BSD layer has two simple and well working calls: system() and popen(), see their man pages. Both execute via the shell.

The only thing with these is, they block execution until they're finished. That's bad or good depending on the context.

And they're not necessarily portable. Portability is one of the features of NSTask. While portability may not be an issue now, the Cocoa predecessor, OPENSTEP, was ported to NT. Should something similar ever happen again, those who avoid platform-dependent code will have much less porting work to do.

Art Isbell
Apple iServices Technical Support
http://www.apple.com/iservices/webobjectssupport/
+1-808-591-0836


References: 
 >Re: NSTask - grep (From: Markus Hitter <email@hidden>)

  • Prev by Date: Re: getLineStart:end:contentsEnd:forRange:
  • Next by Date: Re: NSThread question
  • Previous by thread: Re: NSTask - grep
  • Next by thread: Re: NSTask - grep
  • Index(es):
    • Date
    • Thread