Re: Getting current user short name
Re: Getting current user short name
- Subject: Re: Getting current user short name
- From: "Finlay Dobbie" <email@hidden>
- Date: Fri, 10 Nov 2006 19:18:58 +0000
On 08/11/06, Adam R. Maxwell <email@hidden> wrote:
We're using NSUserName/NSFullUserName/NSHomeDirectory functions in an
app. Is it safe to assume these return the console user for a Cocoa
GUI application since a connection to the window server is required
to run the app?
Depends what you want. If fast user switching is invoked, your app may
be backgrounded and still running, but NSUserName() will still be the
owner of your application and not the person currently logged in to
the console.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden