Skip to content
kerrishotts edited this page Apr 1, 2013 · 1 revision

(part of PKObject)

Return Type: super class's return type

Parameters: currentClass (string), functionName (string), [arg0-arg9]

Calls the function associated with the superclass of currentClass with the name of functionName. currentClass must be specified literally as super.class would result in an infinite loop.

Up to ten arguments can be passed to the superclass's method; these can be of any type.

Usage

newObject = function ()
{
    var self = new UI.View();
    self.subclass ( "UILabel" );
    ...
    self.overrideSuper ( self.class, "initWithOptions", self.initWithOptions );
    self.initWithOptions = function ( options )
    {
        self.super ( "UIView", "initWithOptions", options );
        ...
    }
    ...
}

Version

0.3 Introduced; docs valid

Clone this wiki locally