Re: Best implementation for iTunes-like playlist structure?
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