Mocha icon indicating copy to clipboard operation
Mocha copied to clipboard

Fix so Javascript can call CoreData object properties

Open afedor opened this issue 9 years ago • 0 comments

Properties of subclassed CoreData objects can't be called from Javascript currently. CoreData uses internal private functions to implement the dynamic properties, and this does not seem to work with the runtime method introspection functions, but they do work with NSObject introspection methods. In this patch I only use the NSObject methods if the runtime functions fail, but it seems like you could use the NSObject methods always.

Includes some Unit Tests that illustrate the problem.

afedor avatar Apr 25 '15 21:04 afedor