Skip to content

Instantly share code, notes, and snippets.

@edwardinubuntu
Created December 29, 2010 05:57
Show Gist options
  • Select an option

  • Save edwardinubuntu/758236 to your computer and use it in GitHub Desktop.

Select an option

Save edwardinubuntu/758236 to your computer and use it in GitHub Desktop.
newDocument conformsToProtocol
-(BOOL) addDocument:(id) newDocument {
if ( [newDocument conformsToProtocol:@protocol(Document)]){
// add the document...
returnYES;
} else
return NO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment