This is a minimally modified version of the tutorial found here:
http://www.raywenderlich.com/93997/ios-8-metal-tutorial-swift-part-3-adding-texture
Most of the changes involved conversion to Swift 2 and porting to OSX.
I have another version that uses native GLKit bindings instead of OBJ-C bridging, but the results are the same.