• 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: [NewB] calling shell from ObjC within a PreferencesPane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NewB] calling shell from ObjC within a PreferencesPane


  • Subject: Re: [NewB] calling shell from ObjC within a PreferencesPane
  • From: Sherm Pendley <email@hidden>
  • Date: Tue, 31 Oct 2006 08:59:00 -0500

On Oct 31, 2006, at 8:24 AM, Yvon Thoraval wrote:

the basic way to start the server using the terminal being :

> sudo launchctl start net.sourceforge.leafnode

then my question is how could i call launchdctl from ObjC ?

NSTask

also i will have to open a window for the user to authentificate

No you won't - the authentication framework will pop up a window automatically if needed. See:


<http://developer.apple.com/documentation/Security/Conceptual/ authorization_concepts/index.html>
<http://developer.apple.com/documentation/Security/Reference/ authorization_ref/index.html>


this server as process to be put in daily crontab

I thought you said it was a daemon? Make up your mind.

, i know how to use the crontab under shell but how from ObjC.

There's no programmatic API that I know of. Just use NSTask to run the shell command.


sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________ 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: [NewB] calling shell from ObjC within a PreferencesPane
      • From: Yvon Thoraval <email@hidden>
References: 
 >[NewB] calling shell from ObjC within a PreferencesPane (From: Yvon Thoraval <email@hidden>)

  • Prev by Date: Customizing NSMenuItem
  • Next by Date: Re: NSTableView Columns live resizing during Window Resize
  • Previous by thread: Re: [NewB] calling shell from ObjC within a PreferencesPane
  • Next by thread: Re: [NewB] calling shell from ObjC within a PreferencesPane
  • Index(es):
    • Date
    • Thread