This intercepts every invocation of setMainMenu to NSApplication. #importEdit In the C language, the #include pre-compile directive always causes a file's contents to be inserted into the source at that point.