Home | History | Annotate | Download | only in cocoa

Lines Matching full:item

70 // Adds a separator item at the given index. As the separator doesn't need
79 // Adds an item or a hierarchical menu to the item at the |index|,
87 scoped_nsobject<NSMenuItem> item(
92 // If the menu item has an icon, set it.
97 [item setImage:icon];
104 [item setTarget:nil];
105 [item setAction:nil];
109 [item setSubmenu:submenu];
116 [item setTag:modelIndex];
117 [item setTarget:self];
119 [item setRepresentedObject:modelObject]; // Retains |modelObject|.
122 [item setKeyEquivalent:accelerator.characters()];
123 [item setKeyEquivalentModifierMask:accelerator.modifiers()];
126 [menu insertItem:item atIndex:index];
130 // radio, etc) of each item in the menu. Also will update the title if
131 // the item is marked as "dynamic".
132 - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {
133 SEL action = [item action];
137 NSInteger modelIndex = [item tag];
140 [[(id)item representedObject] pointerValue]);
144 DCHECK([(id)item isKindOfClass:[NSMenuItem class]]);
145 [(id)item setState:(checked ? NSOnState : NSOffState)];
146 [(id)item setHidden:(!model->IsVisibleAt(modelIndex))];
151 [(id)item setTitle:label];
156 [(id)item setImage:icon];
163 // Called when the user chooses a particular menu item. |sender| is the menu
164 // item chosen.
179 // If this is to be used with a NSPopUpButtonCell, add an item at the 0th
182 // are unaffected by the extra item.