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

Getting the name of the current user


  • Subject: Getting the name of the current user
  • From: Serge Meynard <email@hidden>
  • Date: Thu, 30 Aug 2001 22:46:22 -0400

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.
I suppose I could expand the home directory path and extract the last
component using NSString, but that feels like an ugly hack...

Serge

========================================
A conclusion is the place where you got tired of thinking.


  • Follow-Ups:
    • Re: Getting the name of the current user
      • From: Ondra Cada <email@hidden>
    • Re: Getting the name of the current user
      • From: "Erik M. Buck" <email@hidden>
    • Re: Getting the name of the current user
      • From: "John C. Randolph" <email@hidden>
    • Re: Getting the name of the current user
      • From: Kurt Revis <email@hidden>
  • Prev by Date: Please point me in the right direction for contextual menus
  • Next by Date: Re: Getting the name of the current user
  • Previous by thread: Re: Please point me in the right direction for contextual menus
  • Next by thread: Re: Getting the name of the current user
  • Index(es):
    • Date
    • Thread