• 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
NSTask Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTask Question
      • From: "John Cebasek" <email@hidden>
  • Prev by Date: Re: How to make Fetched Property SELF constrinat?
  • Next by Date: Re: Changing startup disk (was: Re: Changing startup desk[sic])
  • Previous by thread: Re: Find which NSTextField is current responder
  • Next by thread: Re: NSTask Question
  • Index(es):
    • Date
    • Thread