Skip to content

Instantly share code, notes, and snippets.

@jfpoole
Created July 2, 2012 17:43
Show Gist options
  • Save jfpoole/3034527 to your computer and use it in GitHub Desktop.
Save jfpoole/3034527 to your computer and use it in GitHub Desktop.
Object may not respond to method
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