Every endpoint is uniquely identified by a descriptor as returned
by its descriptor method. This descriptor can easily be
stored and then used to locate the same endpoint at a later time.
You can use the PYMIDIManager realSourceWithDescriptor:
and realDestinationWithDescriptor: methods to find a real
endpoint matching a particular descriptor.
The PYMIDIEndpointSet class allows you to search an NSArray of PYMIDIEndpoints for an endpoint matching a particular descriptor:
PYMIDIEndpointSet* endpointSet; PYMIDIEndpoint* endpoint; endpointSet = [PYMIDIEndpointSet endpointSetWithArray:endpointArray]; endpoint = [endpointSet endpointWithDescriptor:descriptor];
Endpoint sets can also be used as delegates for NSKeyedArchiver
and NSKeyedUnarchiver. See the documentation on
Archiving Endpoints for more information.