| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Dec 13, 2006
Posts: 13
![]() |
Hi All,
I m using qt On my MAC Intel. I want the detail of the user login through programming that is want to know looged user name and permissions. Actually I want that the user login as root should be able to run the application other user will not able to do that. I also want some system information like OS Information and System type whether it is power pc or Intel through programming. If some one knows how I can do that then plz help me out. Thanks. Last edited by vishal.chauhan; 05-29-2007 at 03:09 AM. |
| QUOTE Thanks | |
![]() Member Since: Dec 28, 2003
Location: Long Island, NY
Posts: 911
![]() Mac Specs: 15" MacBook Pro & 23" ACD
|
NSString *shortname = NSUserName();
NSString *fullUsername = NSFullUserName(); You'll have to do a bit of research for the permission and architecture stuff --- need a bit of context before I help you there. |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Login Problems | Willow | Apple Desktops | 0 | 12-11-2006 01:45 PM |
| VNC on Mac even show at login screen? | amagab | OS X - Apps and Games | 0 | 10-23-2006 05:43 PM |
| ibook g4 user - one year later...... | Computer.Geek | Apple Notebooks | 10 | 05-17-2006 10:19 AM |
| Show Item Info | inflexion | OS X - Operating System | 15 | 10-24-2005 10:34 PM |
| Deleting main user? | Judestone | OS X - Operating System | 2 | 08-11-2005 05:21 AM |
All times are GMT -4. The time now is 08:27 AM.
Powered by vBulletin