• 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: Kurt Revis <email@hidden>
  • Date: Thu, 30 Aug 2001 20:02:11 -0700

Is there an API in Cocoa (or Carbon I guess) to get the name of the current
user under OS X? Searching the apple docs got me nothing.

Use the function NSUserName(), which is in Foundation. This is documented in the "Functions" section of the HTML documentation, which is very easy to overlook.

(I wonder how many answers this question will get? No one's answered it yet, but surely we're all typing away at the same time...)

--
Kurt Revis
email@hidden


  • Follow-Ups:
    • Re: Getting the name of the current user
      • From: email@hidden
References: 
 >Getting the name of the current user (From: Serge Meynard <email@hidden>)

  • Prev by Date: Getting the name of the current user
  • Next by Date: Re: Getting the name of the current user
  • Previous by thread: Getting the name of the current user
  • Next by thread: Re: Getting the name of the current user
  • Index(es):
    • Date
    • Thread