Skip to content

Instantly share code, notes, and snippets.

@pita5
Created January 23, 2012 17:41
Show Gist options
  • Select an option

  • Save pita5/1664447 to your computer and use it in GitHub Desktop.

Select an option

Save pita5/1664447 to your computer and use it in GitHub Desktop.
#ifndef MAYBE
#define MAYBE (BOOL)2
#endif
- (void)boldPressed:(id)sender
{
if ([_editingFrame isBoldInSelectedRange] == MAYBE)
{
NSLog(@"maybe");
}
else if ([_editingFrame isBoldInSelectedRange])
{
NSLog(@"yes");
}
else
{
NSLog(@"no");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment