AppKit.View

Attributes

Attribute Value (default) Details
hidden boolean (false) set to true to hide view, false to unhide the view
outlet object attribute (undefined) wire the view to a Javascript object attribute

Methods

Method Name Details
get gets the attribute's value
set sets the attribute's value

Using get/set

The get and set methods should be use to get and set a view's properties, respectively. Because many properties of a view are computed, using them directly will often result in errors. For example, to hide a view do

    aView.set("hidden", true);
Doing
    aView.hidden = true
is incorrect, and will break the way aView works.

Likewise, using

aView.hidden
to test if a view is hidden will not work. Use
aView.get('hidden')
instead. This is true for all objects that inherit from AppKit.View.