PYMIDI

The PYMIDI Framework provides a set of classes and utility functions for communicating via MIDI, both with physical devices (MIDI interfaces, MIDI controllers, etc.) and with other MIDI software.

It provides a nice Objective-C interface to the basics of CoreMIDI while still allowing you to access the underlying CoreMIDI objects for advanced stuff.

It makes a couple of normally difficult things very easy: generating good human readable endpoint names, saving references to endpoints in files, etc.

If you're interested in this then you'll probably also want to grab the source to MIDI Patchbay from above for an example of how the framework can be used.