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 |
Method Name | Details |
---|---|
get | gets the attribute's value |
set | sets the attribute's value |
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 = trueis incorrect, and will break the way aView works.
Likewise, using
aView.hiddento 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.