Sorry for my terrible answer layout. I have no idea how to clean it up. Let's try again :
NSString *ipeBasePath = @"/Applications/microchip/mplabx/v6.25/mplab_platform/mplab_ipe";
NSString *command = [NSString stringWithFormat:@"cd \"%@\" && PATH=\"/usr/bin:/bin:/usr/sbin:/sbin:$PATH\" bash \"./bin/ipecmd.sh\" -P16LF18326 -TSJIT180510799 -OD -W -F\"%@\" -S\"%@\" -M",
ipeBasePath, self.hexFilePath, self.numFilePath];
NSLog(@"🚀 Programmation en cours...");
self.statusLabel.stringValue = @"Programation en cours ✅";
NSTask *task = [[NSTask alloc] init];
task.launchPath = @"/bin/bash";
task.arguments = @[@"-c", command];
It looks better. Do you need any comments in the listing ?
Topic:
UI Frameworks
SubTopic:
General
Tags: