Article View: comp.sys.mac.oop.powerplant
Article #12Re: How to run a application in my program
From: Jim Schimpf
Date: Thu, 25 Sep 2003 09:47
Date: Thu, 25 Sep 2003 09:47
15 lines
1913 bytes
1913 bytes
heroin_c@hotmail.com (wall) wrote in message news:<7328a61a.0309232224.620832eb@posting.google.com>...
> I want to run QuickTime application to play movie files in my program.
> which function can do this,who knows how to do that?
> Give me a advice.
If you are writing in C or Objective C you can use the system()
call (in Project Builder get the Unix Man page...). Or you can use
NSTask to fit better in a Cocoa world. If you want some advice on
NSTask go to Cocoa Dev Central they have at least one tutorial on it.
On system() there are many examples available via google.
It does get a lot harder if you want the Movie player to put the
movie in YOUR window rather than it's default one.
--jim
Technical Details
Message-ID:
<5d6ed6b4.0309250147.43a5cd1a@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailReferences:
<7328a61a.0309232224.620832eb@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,c507b6100cc9aadc X-Google-Attributes: gid10bcce,public X-Google-Thread: f98ee,c507b6100cc9aadc X-Google-Attributes: gidf98ee,public X-Google-Thread: f635e,c507b6100cc9aadc X-Google-Attributes: gidf635e,public X-Google-Thread: f7f77,c507b6100cc9aadc X-Google-Attributes: gidf7f77,public X-Google-ArrivalTime: 2003-09-25 02:47:42 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: vze35xda@verizon.net (Jim Schimpf) Newsgroups: comp.sys.mac.oop.powerplant,codewarrior.mac,comp.sys.mac.programmer.codewarrior,comp.sys.mac.programmer.tools Subject: Re: How to run a application in my program Date: 25 Sep 2003 02:47:40 -0700 Organization: http://groups.google.com/ Lines: 15 Message-ID: <5d6ed6b4.0309250147.43a5cd1a@posting.google.com> References: <7328a61a.0309232224.620832eb@posting.google.com> NNTP-Posting-Host: 141.158.123.45 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1064483261 25516 127.0.0.1 (25 Sep 2003 09:47:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 Sep 2003 09:47:41 GMT