Why Nostr? What is Njump?
2023-09-02 02:45:13
in reply to

Michael Tsai on Nostr: npub1sy696…g5dxr Yeah, this is a tricky one. I think it actually goes the other ...

Yeah, this is a tricky one. I think it actually goes the other way. `==` from the `Equatable` conformance on `NSObject` calls `isEqual`. `==` is static so it can’t be overridden, and you can’t reconform a subclass to `Equatable`. For the same reason, you’ll probably also want to override `NSObject.hash` because otherwise `MyCoolItem` is `Hashable` (since it inherits from `NSObject`) but doesn’t follow the contract.
Author Public Key
npub1yxfateme7p3jcp5ynprp9dc0706wcym0fs0g7hl4nsns9q9z9w9st9t8rv