javamacosobjectcontextrococoa

I need help in getting the current logged in user in Mac OSX using object-c from accessed via java's Rococoa


I am new in Mac OSX and I wanted to get the logged in user for an intranet authentication app I am working on at work. I have read about Rococoa and how it can be used to access native object-c methods and properties. Is there a beginner tutorial or user guide to this? Please help.


Solution

  • You only need to get the environment varriable "USER" with the standard C call getEnv(). (Like on any other OS ;D)