London Escorts sunderland escorts 1v1.lol unblocked yohoho 76 https://www.symbaloo.com/mix/yohoho?lang=EN yohoho https://www.symbaloo.com/mix/agariounblockedpvp https://yohoho-io.app/ https://www.symbaloo.com/mix/agariounblockedschool1?lang=EN
2.2 C
New York
Saturday, February 1, 2025

ios – ‘NSHashTable’ requires that ‘any MyCustomProtocolAnyObject’ be a category sort


Curious, why I am getting this error:

enter image description here

If I declare that solely objects can conform to the protocol:

public protocol DayViewStateUpdating: AnyObject {
    func transfer(from oldDate: Date, to newDate: Date)
}

After which attempting to instantiate an NSHashTableof that protocol:

non-public var clientsHashTable = NSHashTable<DayViewStateUpdating>.weakObjects()

I am getting the error:

‘NSHashTable’ requires that ‘any DayViewStateUpdating’ be a category sort

However the any DayViewStateUpdating is assured to be a category sort, because it’s declared as AnyObject earlier. Or am I lacking one thing?

Supply code of the file in context: DayViewState

Related Articles

Social Media Auto Publish Powered By : XYZScripts.com