(Created page with '=== Printing Ivars === Often just typing *varName works: cy# *controller {isa:"PrefsRootController",_contentView:"<UIView: 0x10bd70; frame = (0 0; 320 460); autoresize = W+H; …') |
m (Array comprehension. Removing excessively long output.) |
||
Line 1: | Line 1: | ||
=== Printing Ivars === | === Printing Ivars === | ||
Often just typing *varName works: | Often just typing <tt>*varName</tt> works: | ||
<source lang="javascript"> | |||
cy# *controller | |||
{isa:"PrefsRootController",_contentView:"<UIView: 0x10bd70; frame = (0 0; 320 460); autoresize = W+H; layer = <CALayer: 0x150120>>",_navBar:... | |||
cy# | |||
</source> | |||
Sometimes it does not... | |||
Sometimes it | <source lang="javascript"> | ||
cy# *UIApp | |||
{message:"hasProperty callback returned true for a property that doesn't exist.",name:"ReferenceError"} | |||
</source> | |||
then you can do: | then you can do: | ||
<source lang="javascript"> | |||
cy# [i for (i in *UIApp)] | |||
["isa","_delegate","_touchMap","_exclusiveTouchWindows","_event",... | |||
</source> |
Revision as of 12:53, 2 November 2009
Printing Ivars
Often just typing *varName works:
cy# *controller
{isa:"PrefsRootController",_contentView:"<UIView: 0x10bd70; frame = (0 0; 320 460); autoresize = W+H; layer = <CALayer: 0x150120>>",_navBar:...
cy#
Sometimes it does not...
cy# *UIApp
{message:"hasProperty callback returned true for a property that doesn't exist.",name:"ReferenceError"}
then you can do:
cy# [i for (i in *UIApp)]
["isa","_delegate","_touchMap","_exclusiveTouchWindows","_event",...