How can I declare an NSMapTable
in Swift 3? Why doesn't this example from Apple work?
let activeLines = NSMapTable.strongToStrongObjectsMapTable()
Xcode suggested change to:
let activeLines = NSMapTable.strongToStrongObjects()
but it still does not work.
I need convert this example to Swift 3
NSMapTable.strongToStrongObjects()
will fail with the error:The class declaration of NSMapTable is:
You need to specify the key and object types of your map table in its declaration: