yllan

Nowhere differentiable curve

Notes

NSIndexPath gotcha!

Although it’s documented like this,

NSIndexPath objects are uniqued and shared. If an index path containing the specified index or indexes already exists, that object is returned instead of a new instance.

Test equality of two NSIndexPaths with == is SO WRONG. The uniqueness is not guaranteed. Sometimes, there will be two distinct NSIndexPath objects with the same index.