Many updates
- Exit warning dialog is now based on standard NSAlert
- All command-line tools are executed asynchronously using
NSOperationQueue
- Status is processed using XSLT and visualized in basic HTML format
Also, all constants for command-line tools are moved to wscipt/config.h. If
new commands needed, they should be added into wscript, which will
eventually create proper config.h file.
Change-Id: I2e7c248f8f3b92085a50c49761bd81702fe8685b
diff --git a/osx/preference-delegate.mm b/osx/preference-delegate.mm
index 0753290..2760908 100644
--- a/osx/preference-delegate.mm
+++ b/osx/preference-delegate.mm
@@ -9,11 +9,6 @@
#include "config.h"
#import "preference-delegate.h"
-#define NDND_START_COMMAND @ NDNX_ROOT "/bin/ndndstart"
-#define NDND_STOP_COMMAND @ NDNX_ROOT "/bin/ndndstop"
-#define NDND_STATUS_COMMAND @ NDNX_ROOT "/bin/ndndstatus"
-#define NDND_FIB_COMMAND @ NDNX_ROOT "/bin/ndndc"
-
@implementation PreferenceDelegate
-(IBAction)showPreferencesPanel:(id)sender
@@ -97,7 +92,7 @@
NSArray *arguments = [NSArray arrayWithObjects: operationName, prefixName, socketType, address, nil];
NSTask *task = [[NSTask alloc] init];
- [task setLaunchPath: NDND_FIB_COMMAND];
+ [task setLaunchPath: @NDND_FIB_COMMAND];
[task setArguments: arguments];
[task launch];
}