• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Steve Checkoway <email@hidden>
  • Date: Fri, 11 Jan 2008 12:43:34 -0800

John Zorko wrote:

... now this works, but the system() command is _so_ inappropriate here I think. What would be the best way to do this? On Windows, I would probably use ShellExecuteEx() ... how do I do this on OSX? Carbon, Cocoa ... either is ok (though my C++ is strong and my ObjC is weak) ...

Using Cocoa, [[NSWorkspace sharedWorkspace] launchApplication:@"taskbar"];

Or you can use Launch Services (possibly the better approach), <http://developer.apple.com/documentation/Carbon/Reference/LaunchServicesReference/Reference/reference.html>.


-- Steve Checkoway


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >(no subject) (From: John Zorko <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Launchd script question
  • Previous by thread: (no subject)
  • Next by thread: Launchd script question
  • Index(es):
    • Date
    • Thread