title: How to get MacOsX Logged-in User's user id in Objective-C?
body: <p>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.</p>