H2CO3/MFMusicLibrary — Issue #2: Get Track by persistent ID
Author: hacx
Created: 2011-10-15 08:13:58+00:00
State: open

While the framework always assume i want a track by its index id, this is wrong when trying to do persistent tasks.
meaning, If a track is removed or added the index is changed and therefor i cannot assume the track is at the same index.

This is a problem if i try to save last played track index to NSUserDefaults and retrieve it when i get back to the application. it can return a different track or crash if i'm out of bounds.

I understand the use of index for quick scrolling through tracks but there should also be a way to retrieve a track by its persistent id.