I have the PGMidi.h
with the following delegate
@protocol PGMidiSourceDelegate
- (void) midiSource:(PGMidiSource*)input midiReceived:(const MIDIPacketList *)packetList;
Then in my viewController.m
I simply want to get an NSLog
when the delegate is called so
@interface viewController () <PGMidiDelegate, PGMidiSourceDelegate>
@end
@implementation viewController;
- (void) midiSource:(PGMidiSource*)midi midiReceived:(const MIDIPacketList *)packetList
{
NSLog(@"test");
}
I know that the delegate is working because in the PGMidi
Class I also put
- (void) midiSource:(PGMidiSource*)midi midiReceived:(const MIDIPacketList *)packetList
{
NSLog(@"test");
}
and it works.
But for some reason it is not communicating with the viewController.m. I am also declaring the @PGMidi class in the header. But perhaps I have to import the entire PGMidi.h?