PATH  Documentation > Mac OS X > Foundation Reference: Java



Table of Contents

NSSystem


Inherits from:
NSObject
Package:
com.apple.yellow.foundation


Class Description


Description forthcoming.




Constants


The following constants are provided by NSSystem:


Constant Type Description
HPUXOperatingSystem int 4
MACHOperatingSystem int 5
SolarisOperatingSystem int 3
Windows95OperatingSystem int 2
WindowsNTOperatingSystem int 1



Method Types


Constructors
NSSystem
TBD_Functional_Method_Group
arguments
currentFullUserName
currentHomeDirectory
currentUserName
environment
homeDirectoryForUser
hostName
log
operatingSystem
operatingSystemName
processName
setArguments
setProcessName


Constructors



NSSystem

public NSSystem()

Description forthcoming.


Static Methods



arguments

public static NSArray arguments()

Returns the command line arguments as an array of Strings.

currentFullUserName

public static String currentFullUserName()

Description forthcoming.

currentHomeDirectory

public static String currentHomeDirectory()

Description forthcoming.

currentUserName

public static String currentUserName()

Description forthcoming.

environment

public static NSDictionary environment()

Returns a dictionary of variables for the environment from which the process was launched. The dictionary keys are the environment variable names.

homeDirectoryForUser

public static String homeDirectoryForUser(String aString)

Description forthcoming.

hostName

public static String hostName()

Returns the name of the host system.

log

public static void log(String aString)

Description forthcoming.

operatingSystem

public static int operatingSystem()

Returns a constant to indicate the operating system on which the process is executing.See "Constants" for a list of possible values.

operatingSystemName

public static String operatingSystemName()

Description forthcoming.

processName

public static String processName()

Returns the name of the process. This name is used to register application defaults and is used in error messages. It does not uniquely identify the process.

See Also: setProcessName



setArguments

public static void setArguments(String[] strings)

Description forthcoming.

public static void setArguments(NSArray anArray)

Description forthcoming.

setProcessName

public static void setProcessName(String newName)

Sets the name of the process to newName. WARNING

User defaults and other aspects of the environment might depend on the process name, so be very careful if you change it. Setting the process name in this manner is not thread-safe.

See Also: processName




Table of Contents