• 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: NSFullUserName() always returns the user name at app launch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFullUserName() always returns the user name at app launch?


  • Subject: Re: NSFullUserName() always returns the user name at app launch?
  • From: David Blanton <email@hidden>
  • Date: Thu, 4 Feb 2010 10:20:35 -0700

No. They are logged n a user A, changing the name to user B is meaningless until they log out / login in.

My guess anyway.

On Feb 4, 2010, at 9:26 AM, Joar Wingfors wrote:


On 4 feb 2010, at 00.27, Laurent Daudelin wrote:

I'm using NSFullUserName() to get the user name of the currently logged user and from my application, the user can open the Accounts preference pane to edit it. Problem is, after the user changes his user name, another call to NSFullUserName() still returns the original user name. Is this a bug or what?


Not sure, but it sounds like something you should file a bug report about in any case:

	<http://developer.apple.com/bugreporter/>


BTW, supporting 10.4 (preventing the user of NSPreferencePanesDirectory, how can one can safely builds the path to "Accounts.prefPane" and make sure it will work even if the system runs under a different language than English?


The file system on Mac OS X is always in English, even though it might be presented localized to the user.


j o a r


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSFullUserName() always returns the user name at app launch?
      • From: Laurent Daudelin <email@hidden>
References: 
 >NSFullUserName() always returns the user name at app launch? (From: Laurent Daudelin <email@hidden>)
 >Re: NSFullUserName() always returns the user name at app launch? (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: Outlineview ParentObject
  • Next by Date: Re: Scope of NSOperations
  • Previous by thread: Re: NSFullUserName() always returns the user name at app launch?
  • Next by thread: Re: NSFullUserName() always returns the user name at app launch?
  • Index(es):
    • Date
    • Thread