Skip to content

Instantly share code, notes, and snippets.

@claybridges
Created August 5, 2013 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claybridges/6156676 to your computer and use it in GitHub Desktop.
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.
- (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