Created
August 5, 2013 15:10
-
-
Save claybridges/6156676 to your computer and use it in GitHub Desktop.
Problems with the [NSDecimalNumber* -initWithDecimal:] selector? This test crashes on Xcode 4.6.3 vs. OS X 10.8.4.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)testInitWithDecimal { | |
Method m = class_getInstanceMethod([NSDecimalNumber class], @selector(initWithDecimal:)); | |
const char *types = method_getTypeEncoding(m); | |
// this will yield: | |
// +[NSMethodSignature signatureWithObjCTypes:]: unsupported type encoding spec '{?}' | |
NSMethodSignature *ms = [NSMethodSignature signatureWithObjCTypes:types]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment