Created
July 2, 2012 17:43
-
-
Save jfpoole/3034527 to your computer and use it in GitHub Desktop.
Object may not respond to method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([[self window] respondsToSelector:@selector(setRestorable:)]) { | |
// NSLog(@"Disabling restorable documents."); | |
[[self window] setRestorable:NO]; | |
} | |
// GCC complains with the following warning: | |
// warning: ‘NSWindow’ may not respond to ‘-setRestorable: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment