My app is a music library app, the user has their songs, and they can create playlists.
I want the order of the songs in the playlist to be in the order that the user adds those songs to that playlist.
My core data objects:
Song
=====
name
duration
album
artist (to one relationship)
Playlist
========
title
songs (to many relationship)
I have a tableview of playlists, each row in that table shows the title of the playlist and the name of the last song added to that playlist.
I have two questions:
Set the relationship type to ordered in the core data editor. This will mean that you now get an NSOrderedSet
of songs instead of just an NSSet
of songs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With