help-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to know the user name, host name, etc ?


From: Chris B . Vetter
Subject: Re: How to know the user name, host name, etc ?
Date: Tue, 23 Jul 2002 10:42:27 -0700

On Tue, 23 Jul 2002 13:23:14 -0400
"Yen-Ju Chen" <yjchenx@hotmail.com> wrote:
> Hi,
>   Is there any easy way to know the user name, host name,
>   application name and version from GNUstep dynamically?
>   Thanx.

Take a look at NSProcessInfo. There's -hostName, -processName.
In NSUser.m you'll find NSUserName() that returns the user's name.

-- 
Chris



reply via email to

[Prev in Thread] Current Thread [Next in Thread]