• 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
NSTask and environment variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTask and environment variables


  • Subject: NSTask and environment variables
  • From: Chris Idou <email@hidden>
  • Date: Mon, 8 Dec 2008 16:43:34 -0800 (PST)

I want to call a script with NSTask and I want to set an environment variable.

But it seems like bad form to blow away the current environment. So I guess I need to read the current environment and extend it before passing it to NSTask.

Is there any Cocoa API which returns the environment as a NSDictionary, or do I need to drop down to the UNIX getenv() level?





      Start your day with Yahoo!7 and win a Sony Bravia TV. Enter now http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=tagline
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTask and environment variables
      • From: Ingvar Nedrebo <email@hidden>
    • Re: NSTask and environment variables
      • From: j o a r <email@hidden>
  • Prev by Date: Re: building a custom NSView with IB?
  • Next by Date: Re: NSTask and environment variables
  • Previous by thread: Re: NSTask
  • Next by thread: Re: NSTask and environment variables
  • Index(es):
    • Date
    • Thread