• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Modeling "Smart Playlists"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Modeling "Smart Playlists"
      • From: Dave DeLong <email@hidden>
  • Prev by Date: Re: [ NS KeyedArchiver ] archiveRootObject:toFile: hoses my directory's permissions
  • Next by Date: Re: How to draw background image in my app window
  • Previous by thread: Re: Question about NSFileHandle class
  • Next by thread: Re: Modeling "Smart Playlists"
  • Index(es):
    • Date
    • Thread