(Apple) Take out NSApplicationDelegate protocol reference