Re: How to find active user in the cocoa
Re: How to find active user in the cocoa
- Subject: Re: How to find active user in the cocoa
- From: Dave DeLong <email@hidden>
- Date: Mon, 10 Aug 2009 08:44:08 -0600
You can do this in a number of ways.
1. Run an NSTask that executes "who am i"
2. Use NSString to resolve ~/ and pull out the second path component
3. Use CoreService's CSCopyUserName
And probably a host of others. These are the couple I thought of off
the top of my head.
HTH,
Dave
On Aug 10, 2009, at 8:38 AM, Arun wrote:
Hi All,
Is there any way in cocoa to find who is active user if multiple
users have
logged in.
Thanks
Arun
_______________________________________________
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