Class: HotCocoa::PopUpMenuItemList
Instance Attribute Summary
#control
Instance Method Summary
collapse
#<<, #delete, #initialize, #insert, #selected_index, #size
Instance Method Details
#[](index) ⇒ Object
71
72
73
|
# File 'lib/hotcocoa/mappings/appkit/popup.rb', line 71
def [] index
control.itemAtIndex index
end
|
#each(&block) ⇒ Object
75
76
77
|
# File 'lib/hotcocoa/mappings/appkit/popup.rb', line 75
def each &block
control.itemArray.each &block
end
|
59
60
61
|
# File 'lib/hotcocoa/mappings/appkit/popup.rb', line 59
def selected
control.selectedItem
end
|
#selected=(menu_item) ⇒ Object
63
64
65
66
67
68
69
|
# File 'lib/hotcocoa/mappings/appkit/popup.rb', line 63
def selected=
if .kind_of? Fixnum
control.selectItemAtIndex
else
control.selectItem
end
end
|