I am fiddling around with making a cocoapod, and I am trying to make a class that sub-classes from type Array.
The reason I wan it to sub-class from Array, is because Array and NSArray are treated differently in Swift.
I can create a class like this:
class Test : NSArray {}
But if I try this:
class Test : Array {}
Or this:
class Test : [AnyObject] {}
I get an error.
Mostly the reason I want this is so I can use functions like this:
let i = myArray.randomObject()
Versus this:
let i = Test.randomObject(myArray)
Any ideas of what I could do (instead maybe)?