39 [[NSNotificationCenter defaultCenter] addObserver:self
40 selector:@selector(deleteJSPointers)
41 name:kOOJavaScriptEngineWillResetNotification
58 [[NSNotificationCenter defaultCenter] removeObserver:self
59 name:kOOJavaScriptEngineWillResetNotification
66 [_owningScript release];
68 [
self deleteJSPointers];
79- (void)setName:(NSString *)name
82 _name = [name retain];
92- (void)setRegisterKeys:(NSDictionary *)registerKeys
94 [_registerKeys release];
105- (void)setCallback:(jsval)callback
121- (void)setCallbackThis:(JSObject *)callbackThis
131- (void)runCallback:(NSString *)key
135 jsval rval = JSVAL_VOID;
157 return [_name caseInsensitiveCompare:[other
name]];
OOINLINE jsval OOJSValueFromNativeObject(JSContext *context, id object)
OOINLINE JSContext * OOJSAcquireContext(void)
#define OOJSAddGCObjectRoot(context, root, name)
OOINLINE void OOJSRelinquishContext(JSContext *context)
#define OOJSAddGCValueRoot(context, root, name)
NSDictionary * _registerKeys
OOJSScript * _owningScript
JSObject * callbackThis()
NSDictionary * registerKeys()
void pushScript:(OOJSScript *script)
OOJSScript * currentlyRunningScript()
void popScript:(OOJSScript *script)
BOOL callJSFunction:forObject:argc:argv:result:(jsval function,[forObject] JSObject *jsThis,[argc] uintN argc,[argv] jsval *argv,[result] jsval *outResult)
OOJavaScriptEngine * sharedEngine()