diff --git a/Source/MIKMIDIDevice.h b/Source/MIKMIDIDevice.h index b4df1297..235e58b6 100644 --- a/Source/MIKMIDIDevice.h +++ b/Source/MIKMIDIDevice.h @@ -12,6 +12,8 @@ @class MIKMIDIEntity; @class MIKMIDIEndpoint; +NS_ASSUME_NONNULL_BEGIN + /** * MIKMIDIDevice represents a MIDI device such as a DJ controller, MIDI piano keyboard, etc. * @@ -42,7 +44,7 @@ * Connecting to a Device * ---------------------- * - * To connect a device and start receiving MIDI messages from it, you must first get the source endpoints + * To connect a device and start receiving MIDI messages from it, you must first get the source endpoints * you want to connect to. Often there will be only one. You can retrieve all of a devices source endpoints * using the following: * @@ -50,7 +52,7 @@ * MIKMIDISourceEndpoint = [source firstObject]; // Or whichever source you want, but often there's only one. * * Next, connect to that source using MIKMIDIDeviceManager: - * + * * MIKMIDIDeviceManager *manager = [MIKMIDIDeviceManager sharedDeviceManager]; * NSError *error = nil; * BOOL success = [manager connectInput:source error:&error eventHandler:^(MIKMIDISourceEndpoint *source, NSArray *commands) { @@ -113,12 +115,12 @@ /** * The manufacturer of the MIDI device. */ -@property (nonatomic, strong, readonly) NSString *manufacturer; +@property (nonatomic, strong, readonly, nullable) NSString *manufacturer; /** * The model number of the MIDI device. */ -@property (nonatomic, strong, readonly) NSString *model; +@property (nonatomic, strong, readonly, nullable) NSString *model; /** * An NSArray containing instances of MIKMIDIEntity, representing the entities of the @@ -128,3 +130,5 @@ @property (nonatomic, strong, readonly) MIKArrayOf(MIKMIDIEntity *) *entities; @end + +NS_ASSUME_NONNULL_END \ No newline at end of file diff --git a/Source/MIKMIDIUtilities.h b/Source/MIKMIDIUtilities.h index d249f9cb..68025bef 100644 --- a/Source/MIKMIDIUtilities.h +++ b/Source/MIKMIDIUtilities.h @@ -10,8 +10,11 @@ #import #import "MIKMIDIMappableResponder.h" #import "MIKMIDICommand.h" +#import "MIKMIDICompilerCompatibility.h" -NSString *MIKStringPropertyFromMIDIObject(MIDIObjectRef object, CFStringRef propertyID, NSError *__autoreleasing*error); +NS_ASSUME_NONNULL_BEGIN + +NSString * _Nullable MIKStringPropertyFromMIDIObject(MIDIObjectRef object, CFStringRef propertyID, NSError *__autoreleasing*error); BOOL MIKSetStringPropertyOnMIDIObject(MIDIObjectRef object, CFStringRef propertyID, NSString *string, NSError *__autoreleasing*error); SInt32 MIKIntegerPropertyFromMIDIObject(MIDIObjectRef object, CFStringRef propertyID, NSError *__autoreleasing*error); @@ -57,4 +60,4 @@ NSString *MIKMIDINoteLetterForMIDINoteNumber(UInt8 noteNumber); */ NSString *MIKMIDINoteLetterAndOctaveForMIDINote(UInt8 noteNumber); - +NS_ASSUME_NONNULL_END \ No newline at end of file