younotesunreadstarredadd url

Best practices for overriding isEqual: and hash - Stack Overflow

http://stackoverflow.com/questions/254281/best-practices-for-overriding-isequal-and-hash

april 2010algorithm cocoa-touch hashcode iphone objective-c tipsopen in karakeep

by Robert ‧ Stack Overflow ‧ saved copy from 2026.03.03

Karakeep has no AI summary for this page yet. summarize now

page description:

How do you properly override isEqual: in Objective-C? The “catch” seems to be that if two objects are equal (as determined by the isEqual: method), they must have the same hash value. The Introsp…
screenshot of the page

« back to bookmarks