OLD | NEW |
1 //------------------------------------------------------------------------------
--------- | 1 //------------------------------------------------------------------------------
--------- |
2 // $Id: NSMethodSignature+OCMAdditions.m 57 2010-07-19 06:14:27Z erik $ | 2 // $Id$ |
3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details. | 3 // Copyright (c) 2009 by Mulle Kybernetik. See License file for details. |
4 //------------------------------------------------------------------------------
--------- | 4 //------------------------------------------------------------------------------
--------- |
5 | 5 |
6 #import "NSMethodSignature+OCMAdditions.h" | 6 #import "NSMethodSignature+OCMAdditions.h" |
7 | 7 |
8 | 8 |
9 @implementation NSMethodSignature(OCMAdditions) | 9 @implementation NSMethodSignature(OCMAdditions) |
10 | 10 |
11 - (const char *)methodReturnTypeWithoutQualifiers | 11 - (const char *)methodReturnTypeWithoutQualifiers |
12 { | 12 { |
13 const char *returnType = [self methodReturnType]; | 13 const char *returnType = [self methodReturnType]; |
14 while(strchr("rnNoORV", returnType[0]) != NULL) | 14 while(strchr("rnNoORV", returnType[0]) != NULL) |
15 returnType += 1; | 15 returnType += 1; |
16 return returnType; | 16 return returnType; |
17 } | 17 } |
18 | 18 |
19 @end | 19 @end |
OLD | NEW |