• 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
Re: Best implementation for iTunes-like playlist structure?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best implementation for iTunes-like playlist structure?


  • Subject: Re: Best implementation for iTunes-like playlist structure?
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 8 Nov 2009 14:34:24 -0800

On Sun, Nov 8, 2009 at 2:24 PM, Dave DeLong <email@hidden> wrote:
> Looking through the documentation, I see that I can retrieve the
> NSPropertyDescription for a fetched property and change its fetch request.
>  However, I would imagine that that would change the fetch request in all
> instances of that entity (which I definitely do not want).  Is there really
> no other way to model smart playlists than to store the predicate myself?

While you would probably be better off using fetch request templates
than just raw strings, for the same reasons that parameterized queries
are superior to raw strings when dealing with RDBMSes, Core Data
really has no facility for doing what you want to do.  Relationships
exist at the entity level, not the object level.  While you could
potentially model what you want by creating some form of join entity,
that won't really be an ideal solution.  Your best bet will be to
listen for notifications in a custom controller object.

--Kyle Sluder
_______________________________________________

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

References: 
 >Best implementation for iTunes-like playlist structure? (From: Dave DeLong <email@hidden>)
 >Re: Best implementation for iTunes-like playlist structure? (From: Jerry Krinock <email@hidden>)
 >Re: Best implementation for iTunes-like playlist structure? (From: Dave DeLong <email@hidden>)
 >Re: Best implementation for iTunes-like playlist structure? (From: Jerry Krinock <email@hidden>)
 >Re: Best implementation for iTunes-like playlist structure? (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Best implementation for iTunes-like playlist structure?
  • Next by Date: Re: Hardware UUID
  • Previous by thread: Re: Best implementation for iTunes-like playlist structure?
  • Next by thread: Re: Best implementation for iTunes-like playlist structure?
  • Index(es):
    • Date
    • Thread