X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcb68102796280b3e54979ae95738089914ce842..33cc6200a8c797c72536ca319148c0f712cf658a:/src/cocoa/utilsexc.mm?ds=inline diff --git a/src/cocoa/utilsexc.mm b/src/cocoa/utilsexc.mm index 7d01c682fc..a6fa6e499a 100644 --- a/src/cocoa/utilsexc.mm +++ b/src/cocoa/utilsexc.mm @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: utilsexec.mm +// Name: src/cocoa/utilsexec.mm // Purpose: Execution-related utilities for wxCocoa // Author: Ryan Norton // Modified by: @@ -7,8 +7,17 @@ // RCS-ID: $Id$ // Copyright: (c) Ryan Norton // Licence: wxWindows licence +// Notes: This code may be useful on platforms other than Darwin. +// On Darwin we share the CoreFoundation code with wxMac. ///////////////////////////////////////////////////////////////////////////// +#include "wx/wxprec.h" +#ifndef WX_PRECOMP +#endif +#include "wx/unix/execute.h" + +#if 0 + #ifdef __GNUG__ #pragma implementation #endif @@ -23,6 +32,13 @@ #import #import +// +// RN: This is a prelimenary implementation - simple +// launching and process redirection works, +// but with the piping tests in the exec sample +// SIGPIPE is triggered... +// + class wxPipeInputStream : public wxInputStream { public: @@ -119,8 +135,8 @@ protected: @end long wxExecute(const wxString& command, - int sync = wxEXEC_ASYNC, - wxProcess *handle = NULL) + int sync, + wxProcess *handle) { NSTask* theTask = [[NSTask alloc] init]; @@ -172,4 +188,6 @@ long wxExecute(const wxString& command, return [theTask terminationStatus]; } -} \ No newline at end of file +} +#endif //0 +