1

What would be the Cocoa equivalent for this code?

#include <Carbon/Carbon.h>
void check_apple_events() {
    printf("check_apple_events\n");
    RgnHandle cursorRgn = NULL; 
    Boolean gotEvent=TRUE; 
    EventRecord event; 
    while (gotEvent) { 
        gotEvent = WaitNextEvent(everyEvent, &event, 0L, cursorRgn); 
    }
}
0

1 Answer 1

3

Start by reading the How Cocoa Applications Handle Apple Events portion of the Cocoa Scripting Guide. Then read the rest of it and ask a more focused question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.