How to make a file executable in Cocoa

One of the things I need to do in our MacOS Client is make a file I create executable. It took a little reverse engeineering to do it, so here’s the code if anyone else needs to make a file executable in MacOS X Cocoa. // Set the attributes of the file we’ve just created which is a little clumsy …