• 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
[aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]


  • Subject: [aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]
  • From: "devdrvr.net Multi-Platform SW" <email@hidden>
  • Date: Sat, 12 Oct 2002 18:28:38 -0700

Want to launch a local routine in my code with an
NSTask. Perhaps this is a complete misuse of the
class. Has anyone changed setLaunchPath to fire
up a local method or external C++ method call?

aTask = [[NSTask alloc] init];

// Instead of:
// [aTask setLaunchPath:@"/bin/ls"];

// Want to:
[aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]

[aTask setArguments:nil];
...

Reason I'm doing is to send standard output to an NSPipe
and then put that pipe to a text field in my Cocoa app's
window. Maybe there is another way, NSConnection or
otherwise. Open to suggestions.

--Perry
========
01 (530) 400-5692 [Davis, CA USA]
mailto:email@hidden
http://www.devdrvr.net/PerryCard.html
ftp://www.devdrvr.net/
_______________________________________________
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: [aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]
      • From: Eric Peyton <email@hidden>
    • Re: [aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]
      • From: Shawn Erickson <email@hidden>
    • Re: [aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Cocoa Books (was New to Cocoa)
  • Next by Date: Re: Cocoa Books (was New to Cocoa)
  • Previous by thread: Re: dual controllers
  • Next by thread: Re: [aTask setLaunchPath:@MYLOCALOBJECTIVECROUTINE]
  • Index(es):
    • Date
    • Thread