Re: Returning all usernames
Re: Returning all usernames
- Subject: Re: Returning all usernames
- From: "Kyle Sluder" <email@hidden>
- Date: Tue, 27 May 2008 08:32:40 -0400
On Tue, May 27, 2008 at 7:36 AM, Glover,David
<email@hidden> wrote:
> I have been using NSUserName to return the username for the current user
> - does anyone know of a way of returning the username for ALL users on
> the machine?
It depends on what you want to do. Note that "all users on the
machine" can include users not actually on the machine, but in some
network store. Depending on what you want to do, you may want to
query Directory Services or invoke the Identity Picker in
Collaboration.framework. I'm afraid there is no one-liner for the
Directory Services option.
--Kyle Sluder
_______________________________________________
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