• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to find active user in the cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to find active user in the cocoa


  • Subject: Re: How to find active user in the cocoa
  • From: Greg Guerin <email@hidden>
  • Date: Mon, 10 Aug 2009 08:12:20 -0700

Arun wrote:

Is there any way in cocoa to find who is active user if multiple users have
logged in.


Read the man page for getuid. It's a C function and applies to the current process.

You can call C functions in Objective-C, and Cocoa has any number of C functions that developers use regularly. For example, see NSLog().

  -- G
_______________________________________________

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


  • Prev by Date: Re: How to find active user in the cocoa
  • Next by Date: Re: How to find active user in the cocoa
  • Previous by thread: Re: How to find active user in the cocoa
  • Next by thread: Re: How to find active user in the cocoa
  • Index(es):
    • Date
    • Thread