I have a NSObject consisting of a bunch of properties. The NSObject can uniquely be identified using a Date property and a String property. What is the best way to create a hash using these two variables?
I could do something like date.hashValue ^ string.hashValue
, but it seems the hashes differ for each object.
The object looks like this:
class Something : Model {
public var name: String!
public var time: Date!
override var hash : Int {
return time.hashValue ^ name.hashValue
}
}