• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't add computed property to NSURLSessionDownloadTask?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Swift: should computed properties be able to throw exceptions?
  • Next by Date: Re: Swift: should computed properties be able to throw exceptions?
  • Previous by thread: Re: Swift: should computed properties be able to throw exceptions?
  • Next by thread: navigating NSPopUpButton menu items with arrow keys
  • Index(es):
    • Date
    • Thread