Skip to content

Instantly share code, notes, and snippets.

@edwardinubuntu
Created December 29, 2010 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardinubuntu/758236 to your computer and use it in GitHub Desktop.
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