1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#pragma once #include <Cocoa/Cocoa.h> namespace Swift { class Event; class CocoaEventLoop; } @interface CocoaEvent : NSObject { Swift::Event* event; Swift::CocoaEventLoop* eventLoop; } // Takes ownership of event - (id) initWithEvent: (Swift::Event*) e eventLoop: (Swift::CocoaEventLoop*) el; - (void) process; - (void) dealloc; @end