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

(no subject)


  • Subject: (no subject)
  • From: John Zorko <email@hidden>
  • Date: Fri, 11 Jan 2008 09:05:09 -0800


Hello all ...

I've what is likely a very simple question, hopefully someone here can answer it. I'm developing a browser plugin using NPAPI, and so far it's working well (in Safari anyway -- still have to get it working in Firefox). Anyway, the whole point of the plugin is just to start a special app that we've developed. This app runs in its' own process.

As a quick test, I made sure that it could start the app by doing quick code like this (don't laugh -- i'm new to NPAPI and just wanted to do a proof of concept):

int16 NPP_HandleEvent(NPP instance, void* event)
{
// if we didn't start the GDM, start it now ...

if ( ! bAlreadyStartedGDM )
{
bAlreadyStartedGDM = true;
system( "open /Users/jmzorko/work/dna_client/trunk/gne_ps_dna/ client/src/wx_GDM/wx_GDM/taskbar.app" );
}


    return 1;
}

... 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) ...

Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com











_______________________________________________
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


  • Follow-Ups:
    • Re: (no subject)
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: Closing an IOUserClient
  • Next by Date: Re: (no subject)
  • Previous by thread: Closing an IOUserClient
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread