Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)windowDidLoad
- {
- // Sent when the controller's window has been loaded from the nib
- [super windowDidLoad];
- NSWindow* window = self.window;
- // Make sure this window controller is in the responder chain
- NSResponder* nextResponder = window.nextResponder; // get our window's next responder
- if (nextResponder!=self)
- {
- // running earlier OS X that does not include the window controller in the chain: patch us in
- self.nextResponder = nextResponder;
- window.nextResponder = self;
- }
Add Comment
Please, Sign In to add comment