Modeling "Smart Playlists"
Modeling "Smart Playlists"
- Subject: Modeling "Smart Playlists"
- From: Ulai Beekam <email@hidden>
- Date: Sat, 30 May 2009 14:14:26 +0000
- Importance: Normal
How would you model "smart playlists" (like in iTunes) with Core Data?
If you have a Song entity, it is fairly obvious how you model a "regular playlist". The RegularPlaylist entity would simply have a to-many relationship to the Song entity, being a simple collection of songs that the user adds to and removes from at will.
But what about "smart playlists"? What attributes/relationships should the SmartPlaylist entity have? In my user interface I would probably have a NSPredicateEditor to make a predicate to filter the results. So shouldn't SmartPlaylist at least have a "predicate" attribute (of type binary data)? And what about the list of songs itself? Should it be a fetched relationship? If yes, the question arises how and when I should update it, since fetched relationships are not "dynamic", as they say in the Core Data doc.
Thanks, U.
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden