Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <string.h>
  3. #include <stdio.h>
  4. #include <ctype.h>
  5. #include <math.h>
  6. #include <iostream>
  7. #import "DDMathParser.h"
  8. #import "NSString+DDMathParsing.h"
  9. #import <Cocoa/Cocoa.h>
  10. #import <Foundation/Foundation.h>
  11.  
  12. int main(int argc, char * argv[])
  13. {
  14. NSLog(@"%@", [@"5 + 5" numberByEvaluatingString]);
  15. }
  16.  
  17. 2015-08-29 09:23:09.788 calculator[6212:101522] -[__NSCFConstantString numberByEvaluatingString]: unrecognized selector sent to instance 0x100001060
  18. 2015-08-29 09:23:09.792 calculator[6212:101522] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString numberByEvaluatingString]: unrecognized selector sent to instance 0x100001060'
  19. *** First throw call stack:
  20. (
  21. 0 CoreFoundation 0x00007fff9365d03c __exceptionPreprocess + 172
  22. 1 libobjc.A.dylib 0x00007fff8fddd76e objc_exception_throw + 43
  23. 2 CoreFoundation 0x00007fff936600ad - [NSObject(NSObject) doesNotRecognizeSelector:] + 205
  24. 3 CoreFoundation 0x00007fff935a5e24 ___forwarding___ + 1028
  25. 4 CoreFoundation 0x00007fff935a5998 _CF_forwarding_prep_0 + 120
  26. 5 calculator 0x0000000100000e86 main + 38
  27. 6 libdyld.dylib 0x00007fff864595c9 start + 1
  28. )
  29. libc++abi.dylib: terminating with uncaught exception of type NSException
  30. (lldb)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement