• 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
Re: Getting current user short name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Getting current user short name (From: Erik Buck <email@hidden>)
 >Re: Getting current user short name (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Re: XML to NSDictionary
  • Next by Date: Re: NSComboBox text binding
  • Previous by thread: Re: Getting current user short name
  • Next by thread: Re: First click in custom window?
  • Index(es):
    • Date
    • Thread