objective c - NSURLRequest not working on Yosemite Today Extension -


I am trying to create a Yosemite Notification Center widget for my own personal use, using NSURLRequest and NSURL connection It is supposed to get numbers from a server and display that number in a label. I'm working on this general purpose-cocoa app so I do not think there is a problem with my code, but I can not get the exact code to work on the extension today. It seems to me that the error is:

  2014-11-04 13: 07: 00.178 b-web mobile downloads [854: 39027] *** Storage Task manager Expert with dispute: Identifier fails : Error Domain = NSCoAired code = 4099 "Could not communicate with the assist app." (The connection to the service named named Com.apple.nsurlstorage-cache was invalid.) UserInfo = 0x60000026e6c0 {NSDebugDescription = com.apple.nsurlstorage-cache The connection to the service named was invalid.}; {NSDebugDescription = "The connection to the service named" com.apple.nsurlstorage-cache was invalid. "; }  

For today's expansion. M is The URL I get from the number is in my actual code, but I stopped it there just because you know, the feedback string and the label. Why are not it working in today's expansion? Am I doing something wrong?

I had a single problem and could solve it. Extension is started in a sandbox You can allow outgoing connections in the sandbox by navigating to your project and selecting your extension goal. Then go to the capabilities section and enable outgoing connections.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -