Skip to content

Instantly share code, notes, and snippets.

@pascaldevink
Created August 29, 2013 10:55
Show Gist options
  • Save pascaldevink/6376692 to your computer and use it in GitHub Desktop.
Save pascaldevink/6376692 to your computer and use it in GitHub Desktop.
BOOL is_Object(const id b)
{
if (b != nil) {
if (b->isa != (id)0x0) {
if (b->isa!= (id)0x7f) {
if (b->isa!= (id)0x7f7f7f7f) {
return YES;
}
}
}
}
return NO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment