Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 7, 2007, 06:12 PM   #1
ajbrehm
macrumors 6502
 
Join Date: Aug 2002
Location: Zurich, Switzerland
NSTask environment variables

How can I set the environment variables for an NSTask?

I want the task to be able to see DISPLAY to connect to an X server.
__________________
Andrew J. Brehm
ajbrehm is offline   0 Reply With Quote
Old Apr 7, 2007, 06:26 PM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Did you even read the documentation before asking? Obviously you might want to read the current environment and add the variable you want to that dictionary to set...
robbieduncan is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Is it possible to run NSTask as user ? GokulKrish Mac Programming 1 Apr 12, 2014 09:07 AM
NSTask Not terminating. DavidBlack Mac Programming 5 Aug 3, 2013 09:07 PM
Help again :( Global Variables. resetme iPhone/iPad Programming 14 Dec 28, 2012 03:20 PM
Altering environment variables msjones OS X 10.8 Mountain Lion 7 Nov 19, 2012 12:29 PM
Environment variables no longer available on OS X in a LoginHook script? iMusings Mac Applications and Mac App Store 1 Jul 24, 2012 08:48 PM

Forum Jump

All times are GMT -5. The time now is 10:28 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC