• 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 user's name from cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the user's name from cocoa


  • Subject: Re: Getting the user's name from cocoa
  • From: David Remahl <email@hidden>
  • Date: Mon, 02 Jul 2001 16:52:19 +0200

Granted, but still he doesn't need that information to implement
NSUserDefaults...

/ david

> FOUNDATION_EXPORT NSString *NSUserName(void);
> FOUNDATION_EXPORT NSString *NSFullUserName(void);
>
> See the file NSPathUtilities.h in Foundation.
>
> Eric
>
> On Monday, July 2, 2001, at 03:39 AM, Simon Stapleton wrote:
>
>> Another newbie question.
>>
>> I'm just adding a bunch of defaults processing to my app, and one
>> of the
>> fields it asks for is the user's name. Now it occurs to me that the
>> system knows who the user is - is this stored anywhere in the cocoa
>> preferences stuff, or do I have to go off to the OS and get it?
>>
>> Simon


References: 
 >Re: Getting the user's name from cocoa (From: Eric Peyton <email@hidden>)

  • Prev by Date: Re: Getting the user's name from cocoa
  • Next by Date: Custom Property List Question
  • Previous by thread: Re: Getting the user's name from cocoa
  • Next by thread: Re: Getting the user's name from cocoa
  • Index(es):
    • Date
    • Thread