Guest User

Untitled

a guest
Jan 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. - (void)windowDidLoad
  2. {
  3. // Sent when the controller's window has been loaded from the nib
  4. [super windowDidLoad];
  5. NSWindow* window = self.window;
  6.  
  7. // Make sure this window controller is in the responder chain
  8. NSResponder* nextResponder = window.nextResponder; // get our window's next responder
  9. if (nextResponder!=self)
  10. {
  11. // running earlier OS X that does not include the window controller in the chain: patch us in
  12. self.nextResponder = nextResponder;
  13. window.nextResponder = self;
  14. }
Add Comment
Please, Sign In to add comment