ytw ytw - 25 days ago 9
Objective-C Question

How to get MacOsX Logged-in User's user id in Objective-C?

Please let me know how to get the currently logged-in user's user id in Objective-C. I would like to get the user id of the logged-in user that's currently using the computer locally. My command-line program is running as root and I want to find the currently logged-in user's user id. Thanks.

SG1 SG1
Answer
Comments