Closed nickkjordan closed 10 years ago
tried to use removeObjectIdenticalTo: but this requires that the two objects being compared have the same address. Unfortunately, when archiving and unarchiving the mutable array in the documents folder, the addresses of the Favorited Songs change with every opening.
Simple overview of overriding the isEqualTo method of an NSObject:
Don't use removeObjectsIdenticalTo: because it tests for the objects address. removeObject tests for equality using isEqual:
Ability to unfavorite a song in the Favorites TVC