Override NSManagedObject getter/setter to modify data
I have an NSManagedObject
class that stores, among other things, a JSON string that comes from a WkWebView
form. The form in the web view allows the user to add images to the form; when the form is submitted, it is passed to the Cocoa layer via userContentController:didReceiveScriptMessage
as a JSON string. The images are included as Base64 encoded data URLs.