-
Notifications
You must be signed in to change notification settings - Fork 29
PKObject.super
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.
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 );
...
}
...
}
0.3 Introduced; docs valid