Skip to content

Instantly share code, notes, and snippets.

@codecaffeine
Created August 30, 2012 11:46
Show Gist options
  • Save codecaffeine/3526961 to your computer and use it in GitHub Desktop.
Save codecaffeine/3526961 to your computer and use it in GitHub Desktop.
Print NSTextCheckingResult type quick and dirty
if (result.resultType == NSTextCheckingTypeOrthography) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeSpelling) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeGrammar) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeDate) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeAddress) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeLink) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeQuote) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeDash) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeReplacement) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeCorrection) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeRegularExpression) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypePhoneNumber) {
NSLog(@"resultType: %@", );
} else if (result.resultType == NSTextCheckingTypeTransitInformation) {
NSLog(@"resultType: %@", );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment