Documentation Archive Developer
Search

CoreMIDI Changes for Objective-C

CoreMIDI

MIDINetworkSession.h

Declaration
From
+ (id)connectionWithHost:(MIDINetworkHost *)host
To
+ (instancetype _Nonnull)connectionWithHost:(MIDINetworkHost * _Nonnull)host

Declaration
From
+ (id)hostWithName:(NSString *)name address:(NSString *)address port:(NSUInteger)port
To
+ (instancetype _Nonnull)hostWithName:(NSString * _Nonnull)name address:(NSString * _Nonnull)address port:(NSUInteger)port

Declaration
From
+ (id)hostWithName:(NSString *)name netService:(NSNetService *)netService
To
+ (instancetype _Nonnull)hostWithName:(NSString * _Nonnull)name netService:(NSNetService * _Nonnull)netService

Declaration
From
+ (id)hostWithName:(NSString *)name netServiceName:(NSString *)netServiceName netServiceDomain:(NSString *)netServiceDomain
To
+ (instancetype _Nonnull)hostWithName:(NSString * _Nonnull)name netServiceName:(NSString * _Nonnull)netServiceName netServiceDomain:(NSString * _Nonnull)netServiceDomain

Declaration
From
- (NSSet *)connections
To
- (NSSet<MIDINetworkConnection *> * _Nonnull)connections

Declaration
From
- (NSSet *)contacts
To
- (NSSet<MIDINetworkHost *> * _Nonnull)contacts

MIDIServices.h

Removed #def MIDIPacketNext
Declaration
From
OSStatus MIDIObjectSetDictionaryProperty (
    MIDIObjectRef obj,
    CFStringRef propertyID,
    CFDictionaryRef data
);
To
OSStatus MIDIObjectSetDictionaryProperty (
    MIDIObjectRef obj,
    CFStringRef _Nonnull propertyID,
    CFDictionaryRef _Nonnull dict
);

MIDIThruConnection.h