Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting current user short name



NSUserName()
NSFullUserName()

It is not safe to assume that the name returned by NSUserName() identifies the user
logged into the Mac OS X console. The user that started an application could be
remotely logged in or logged in via a Unix shell. Cocoa does not currently provide
any way to identify the user logged into the console. Apple provides several techni-
cal notes on the subject. A Carbon function and example code to identify the
current console user is available at <http://developer.apple.com/qa/ qa2001/qa1133.html>. Like all Carbon functions, it can be called from Cocoa applications.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.