@interface NSPopUpButton (hys)

/*selectItemWithTag:

Selects the menu item with the specified tag.

- (BOOL)selectItemWithTag:(int)tag
Parameters
tag

The tag of the item you want to select.
Return Value

YES if the item was successfully selected; otherwise, NO.
Discussion

If no item with the specified tag is found, this method returns NO and leaves the menu state unchanged.

You typically assign tags to menu items from Interface Builder, but you can also assign them programmatically using the setTag: method of NSMenuItem.
Availability
Available in Mac OS X v10.4 and later.
See Also
– indexOfItemWithTag:*/
- (BOOL)selectItemWithTag:(int)tag;

@end