#include "wx/cocoa/string.h"
+#include "wx/cocoa/objc/objc_uniquifying.h"
+
#import <Foundation/Foundation.h>
#import <AppKit/NSWorkspace.h>
-(id)init:(void*)handle processIdentifier:(long)pid;
- (void)termHandler:(NSNotification *)aNotification;
@end
+WX_DECLARE_GET_OBJC_CLASS(wxTaskHandler,NSObject)
@implementation wxTaskHandler : NSObject
}
@end
+WX_IMPLEMENT_GET_OBJC_CLASS(wxTaskHandler,NSObject)
long wxExecute(const wxString& command,
int sync,
- wxProcess *handle)
+ wxProcess *handle,
+ const wxExecuteEnv *env)
{
NSTask* theTask = [[NSTask alloc] init];
if(sync & wxEXEC_ASYNC)
{
- [[wxTaskHandler alloc]init:handle
+ [[WX_GET_OBJC_CLASS(wxTaskHandler) alloc]init:handle
processIdentifier:[theTask processIdentifier]];
return 0;