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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com