boyfarrell.com

boyfarrell.com Archives: May 2007

·

27 May 2007

Using NSDictionary to store custom classes

If you want to integrate your code with Cocoa, you will sooner or later find yourself wanting to store your objects; or use them as keys, in a NSDictionary. Before they can be use in this way you must first implement two methods that cocoa collection classes expect; -(unsigned) hash; and -(BOOL)isEqual:. Hashing is a [...]

continue reading... » 0 Comments

·