Cocoa Obj-C works on Mac. I don't know whether it work on Linux.
It's not only a Code. It's virtually a project with classes (.m and .h / Cocoa classes). At the moment, i learn cocoa objective-c and this is one of my first project

.
Here is an extract from the bulk of this programm.
- {l Code}: {l Select All Code}
- (IBAction)doMove:(id)sender {
// InfoLabel...
[infoLabel setHidden:NO];
NSString * sourcePath = [addonPath stringValue];
NSString * destPath = [addonDestPath stringValue];
NSFileManager *fm = [NSFileManager defaultManager];
// Pfade werden erstellt...
NSString *directoryPath = [addonPath stringValue];
NSDirectoryEnumerator *directoryEnumerator = [[NSFileManager defaultManager] enumeratorAtPath:directoryPath];
for (NSString *path in directoryEnumerator) {
// Überprüfen...
if ([[path pathExtension] isEqualToString:@"kart"]) {
// Don't enumerate this directory.
[directoryEnumerator skipDescendents];
if ([fm moveItemAtPath:sourcePath toPath:destPath error:nil] == YES) {
[infoLabel setStringValue:@"Installation erfolgreich!"];
[ok setImage:[NSImage imageNamed: @"ok.png"]];
[ok2 setImage:[NSImage imageNamed: @"ok.png"]];
} else {
[infoLabel setStringValue:@"Programm konnte das Add-On nicht installieren. Überprüfen Sie die Lokation von SuperTuxKart.app."];
[error setImage:[NSImage imageNamed: @"err (.............)
It isn't easy at all.
Edit: I use XCode to build it.