I am importing items from the iPod library and want to generate a unique filename for each MPMediaItem imported. I want the filename to uniquely represent one MPMediaItem so that if the user imports it again I do not have two files that are the same in the local library.
What’s the best way of achieving this?
I am not sure if I understand your question correctly but each MPMediaItem has a unique identifier
[mediaItem valueForProperty:MPMediaItemPropertyPersistentID];
this returns an NSNumber that is a longlong. Hope this helps or if I have miss understood let me know.