Can't add computed property to NSURLSessionDownloadTask?
Can't add computed property to NSURLSessionDownloadTask?
- Subject: Can't add computed property to NSURLSessionDownloadTask?
- From: Rick Mann <email@hidden>
- Date: Fri, 21 Aug 2015 18:13:28 -0700
I tried to write the extension below, and it compiles just fine. But at runtime I get
'-[__NSCFBackgroundDownloadTask context]: unrecognized selector sent to instance 0x7fb6b44f96a0'
I guess this means that __NSCFBackgroundDownloadTask doesn't inherit from NSURLSessionDownloadTask?
extension
NSURLSessionDownloadTask
{
var
context: [String:String]?
{
set(inVal)
{
stuff
}
get
{
stuff
}
}
}
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden