ytw ytw - 1 year ago 70
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.

Answer Source
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download