• 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: 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


  • Follow-Ups:
    • Re: Best implementation for iTunes-like playlist structure?
      • From: Dave DeLong <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>)

  • Prev by Date: Re: Best implementation for iTunes-like playlist structure?
  • Next by Date: Re: Compile error using @synchronized on methods that return values
  • 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