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: Jerry Krinock <email@hidden>
- Date: Sun, 8 Nov 2009 13:31:50 -0800
On 2009 Nov 08, at 13:10, Dave DeLong wrote:
I've come across several guides and documentation that say the
fetched properties can be used to mimic smart playlists in iTunes,
but I've yet to see any example or explanation on how that can
actually be implemented.
I thought that's why they call it "Sample Code" :))
I understand that a fetched property is basically a stored fetch
request, but from my experimentation, I've only seen how to define
the predicate at compile time (in the fetch request editor) and not
at runtime.
OK. I was thinking that this might work for your DefaultFolder "in
that their predicate is to show everything".
It seems like you're looking for a "user-defined relationship". I'm
not a database guru, but I seem to remember reading somewhere that
such a thing is a non-starter, particularly in Core Data. My
uneducated guess would be that, in this case, you need to remove those
relationships from your smart folders and do the filtering in code.
_______________________________________________
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