On Sun, Nov 8, 2009 at 2:24 PM, Dave DeLong <davedel...@me.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com