MIDI Setup Changes

Setup Change Notifications

By registering with your application's default notification center to receive the the PYMIDISetupChanged notification you can be notified whenever any changes in the MIDI system take place. These include:

Any changes that you make to MIDI endpoints will not cause a PYMIDISetupChanged notification to take place within your application. You are responsible for handling these changes yourself.

The following is a simple example of registering to receive MIDI setup changed notifications:

[[NSNotificationCenter defaultCenter]
	addObserver:self selector:@selector(midiSetupChanged:)
	name:@"PYMIDISetupChanged" object:nil
];

Offline Endpoints

Removed devices will be marked as offline. The correspoing endpoint will continue to exist but it's isOffline method will return YES. Should the device be re-connected, the endpoint will once again be marked as online and linked to the device.

PYMIDIEndpoint's displayName method will append the string " (offline)" to the name of the endpoint when it's offline.