Seg*_*ude 4 objective-c nsurlconnection nsurlrequest osx-yosemite
我正在尝试创建一个Yosemite Notification Center小部件供我个人使用.它应该使用NSURLRequest和NSURLConnection从服务器获取一个数字,并在标签中显示该数字.我在普通的Objective-C Cocoa应用程序中工作,所以我认为我的代码没有问题,但是我无法获得完全相同的代码来处理今天的扩展.这是我得到的错误:
2014-11-04 13:07:00.178 B-Web mobile downloads[854:39027] ***storageTaskManagerExistsWithIdentifier:withIdentifier failed: Error Domain=NSCocoaErrorDomain Code=4099 "Couldn’t communicate with a helper application." (The connection to service named com.apple.nsurlstorage-cache was invalidated.) UserInfo=0x60000026e6c0 {NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; {
NSDebugDescription = "The connection to service named com.apple.nsurlstorage-cache was invalidated.";
}
Run Code Online (Sandbox Code Playgroud)
今日推广的.m就在这里.我从中获取数字的URL是我的实际代码,但我在那里隐瞒了它.您知道,响应字符串和标签在.h中声明.为什么这不适用于Today Extension?难道我做错了什么?
| 归档时间: |
|
| 查看次数: |
491 次 |
| 最近记录: |