NSTask Question
NSTask Question
- Subject: NSTask Question
- From: "John Cebasek" <email@hidden>
- Date: Tue, 5 Jul 2005 09:46:55 -0400
Hi All:
I'm simulating the "Switch Users..." option in the wake from sleep dialog. On Panther, my code:
[NSTask launchedTaskWithLaunchPath:CGSESSIONPATH
arguments:[NSArray arrayWithObject:@"-suspend"]];
(where CGSESSIONPATH is :@"/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession")
works as expected. On Tiger, it appears to execute, but doesn't do the switch; that is go to the login window.
It's not a privileged operation as if you type in the command in the terminal, you don't have to be root.
So, how do I find out:
1- What went wrong. Maybe there be a hint on how to fix it.
2 - Get it to work?
Thanks in advance
John Cebasek
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden