• 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: Erik Buck <email@hidden>
  • Date: Tue, 7 Nov 2006 19:34:15 -0500

NSUserName()
NSFullUserName()

It is not safe to assume that the name returned by NSUserName() identifies the user
logged into the Mac OS X console. The user that started an application could be
remotely logged in or logged in via a Unix shell. Cocoa does not currently provide
any way to identify the user logged into the console. Apple provides several techni-
cal notes on the subject. A Carbon function and example code to identify the
current console user is available at <http://developer.apple.com/qa/ qa2001/qa1133.html>. Like all Carbon functions, it can be called from Cocoa applications.


_______________________________________________
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


  • Follow-Ups:
    • Re: Getting current user short name
      • From: "Adam R. Maxwell" <email@hidden>
  • Prev by Date: Re: First click in custom window?
  • Next by Date: Re: Getting current user short name
  • Previous by thread: Re: Getting current user short name
  • Next by thread: Re: Getting current user short name
  • Index(es):
    • Date
    • Thread