Oolite
Loading...
Searching...
No Matches
OOSound(OOJavaScriptExtentions) Category Reference

Instance Methods

(jsval) - oo_jsValueInContext: [implementation]
(NSString *) - oo_jsDescription [implementation]
(NSString *) - oo_jsClassName [implementation]

Detailed Description

Definition at line 271 of file OOJSSound.m.

Method Documentation

◆ oo_jsClassName

- (NSString *) oo_jsClassName
implementation

Extends class OOSound.

Definition at line 294 of file OOJSSound.m.

295{
296 return @"Sound";
297}

References oo_jsClassName.

Referenced by oo_jsClassName.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oo_jsDescription

- (NSString *) oo_jsDescription
implementation

Extends class OOSound.

Definition at line 289 of file OOJSSound.m.

290{
291 return [NSString stringWithFormat:@"[Sound \"%@\"]", [self name]];
292}

References OOSound::name, and oo_jsDescription.

Referenced by oo_jsDescription.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oo_jsValueInContext:

- (JSValue) oo_jsValueInContext: (JSContext*) context
implementation

Extends class OOSound.

Definition at line 273 of file OOJSSound.m.

273 :(JSContext*)context
274{
275 JSObject* jsSelf = NULL;
276 jsval result = JSVAL_NULL;
277
278 jsSelf = JS_NewObject(context, &sSoundClass, sSoundPrototype, NULL);
279 if (jsSelf != NULL) {
280 if (!JS_SetPrivate(context, jsSelf, [self retain]))
281 jsSelf = NULL;
282 }
283 if (jsSelf != NULL)
284 result = OBJECT_TO_JSVAL(jsSelf);
285
286 return result;
287}
static JSObject * sSoundPrototype
Definition OOJSSound.m:31
static JSClass sSoundClass
Definition OOJSSound.m:43

References sSoundClass, and sSoundPrototype.


The documentation for this category was generated from the following files: