Recommended way to save NSPredicates in Core Data store?
Recommended way to save NSPredicates in Core Data store?
- Subject: Recommended way to save NSPredicates in Core Data store?
- From: Demitri Muna <email@hidden>
- Date: Wed, 15 Aug 2018 19:15:39 -0400
Hi,
I'm building an interface that contains an NSPredicateEditor (think iTunes
smart playlists), and I want to save the predicate in a Core Data store. What
is the recommended way to do this? Serialize the NSPredicate object and save it
as a blob? Break apart the predicate into one or more NSExpressions (left hand
value, operator, right hand value) and reconstruct the predicate? I can think
of several possibilities, but am wondering what is the path of least resistance
(and, I suppose, most binding-friendly!).
Cheers,
Demitri
_______________________________________________
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