Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. - (void) loadFolderContent
  2. {
  3.  
  4. [self.liveClient getWithPath:@"file.3f40e27093d2e59e.3F40E27093D2E59E!306"
  5. delegate:self
  6. userState:@"load-file-content"];
  7. }
  8.  
  9.  
  10. - (void) liveOperationSucceeded:(LiveOperation *)operation
  11. {
  12. if ([operation.userState isEqual:@"load-file-content"])
  13. {
  14. LiveDownloadOperation *downloadOp = (LiveDownloadOperation *)operation;
  15. [downloadOp.data writeToFile:@"example.pdf" atomically:YES];
  16. }
  17. }
  18.  
  19. [downloadOp.data writeToFile:@"example.pdf" atomically:YES]
  20.  
  21. -[LiveOperation data]: unrecognized selector sent to instance 0xacde910
  22. *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[LiveOperation data]: unrecognized selector sent to instance 0xacde910'
  23. *** First throw call stack:
  24. (
  25. 0 CoreFoundation 0x028881e4 __exceptionPreprocess + 180
  26. 1 libobjc.A.dylib 0x026078e5 objc_exception_throw + 44
  27. 2 CoreFoundation 0x02925243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
  28. 3 CoreFoundation 0x0287850b ___forwarding___ + 1019
  29. 4 CoreFoundation 0x028780ee _CF_forwarding_prep_0 + 14
  30. 5 DemoApp 0x000410f3 -[CFFlipsideViewController liveOperationSucceeded:] + 515
  31. 6 DemoApp 0x00050ed7 -[LiveOperationCore operationCompleted] + 335
  32. 7 DemoApp 0x00051060 -[LiveOperationCore connectionDidFinishLoading:] + 35
  33. 8 Foundation 0x023d0e49 ___NSURLConnectionDidFinishLoading_block_invoke + 40
  34. 9 Foundation 0x023677e1 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 62
  35. 10 Foundation 0x021eff5e -[NSURLConnectionInternalConnection invokeForDelegate:] + 119
  36. 11 Foundation 0x021efec6 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 208
  37. 12 Foundation 0x021efdd8 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 76
  38. 13 Foundation 0x021f0188 _NSURLConnectionDidFinishLoading + 43
  39. 14 CFNetwork 0x02d1869f ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 111
  40. 15 CFNetwork 0x02d163de ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 104
  41. 16 CoreFoundation 0x02829c69 CFArrayApplyFunction + 57
  42. 17 CFNetwork 0x02c7f441 _ZN19RunloopBlockContext7performEv + 155
  43. 18 CFNetwork 0x02d613f4 _ZThn16_N19RunloopBlockContext24multiplexerClientPerformEv + 20
  44. 19 CFNetwork 0x02c7f257 _ZN17MultiplexerSource7performEv + 299
  45. 20 CFNetwork 0x02c7f06c _ZN17MultiplexerSource8_performEPv + 76
  46. 21 CoreFoundation 0x0281177f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
  47. 22 CoreFoundation 0x0281110b __CFRunLoopDoSources0 + 235
  48. 23 CoreFoundation 0x0282e1ae __CFRunLoopRun + 910
  49. 24 CoreFoundation 0x0282d9d3 CFRunLoopRunSpecific + 467
  50. 25 CoreFoundation 0x0282d7eb CFRunLoopRunInMode + 123
  51. 26 GraphicsServices 0x039785ee GSEventRunModal + 192
  52. 27 GraphicsServices 0x0397842b GSEventRun + 104
  53. 28 UIKit 0x012c7f9b UIApplicationMain + 1225
  54.  
  55. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement