How to access core data objects from Javascript?
Posted
by Eli
on Stack Overflow
See other posts from Stack Overflow
or by Eli
Published on 2010-06-13T00:55:33Z
Indexed on
2010/06/13
1:02 UTC
Read the original article
Hit count: 288
How can I gain access to Core Data objects from Javascript/WebKit on Mac OS X? I've made custom subclasses of NSManagedObject for each of my tables, with accessors defined using @property/@dynamic for each attribute, but neither isSelectorExcludedFromWebScript: or isKeyExcludedFromWebScript: is called for any of them, so Javascript just stops when I try to access any of the attributes. It returns 'undefined' if I access it as a property (eg business.name ) and javascript execution stops if I access it as a function (eg business.name() ).
© Stack Overflow or respective owner