• 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 the name of the current user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the name of the current user


  • Subject: Re: Getting the name of the current user
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 31 Aug 2001 12:24:40 +0200

Serge,

>>>>>> Serge Meynard (SM) wrote at Thu, 30 Aug 2001 22:46:22 -0400:
SM> Is there an API in Cocoa (or Carbon I guess) to get the name of the
SM> current user under OS X? Searching the apple docs got me nothing.

You should consider a better search tool, then. You have used something like
Sherlock, haven't you? For shame...

=== cut here (Foundation Functions) ===
NSUserName

This function gets information about a user.

NSString *NSUserName(void)

Returns the logon name of the current user.

See also NSFullUserName, NSHomeDirectory, NSHomeDirectoryForUser
=== cut here ===
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Getting the name of the current user (From: Serge Meynard <email@hidden>)

  • Prev by Date: Re: Please point me in the right direction for contextual menus
  • Next by Date: Re: Abstract classes and methods
  • Previous by thread: Re: Getting the name of the current user
  • Next by thread: Re: Getting the name of the current user
  • Index(es):
    • Date
    • Thread