\fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (id)\b initWithFrame:\b0 (NSRect)\i frameRect\i0 Initializes a newly allocated NSPopUpButton, giving it the \
\fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b pullsDown:\b0 (BOOL)\i flag \i0 frame specified by \i frameRect.\i0 If \i flag\i0 is YES, the receiver is initialized to operate as a pull-down list; otherwise, it operates as a pop-up list.\
\pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
\
\
\fs28 Adding Items \
\fs16 \
\fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (void)\b addItemWithTitle:\b0 (NSString *)\i title\i0 Adds an item with \i title\i0 as its title to the end of the item list.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b addItemsWithTitles:\b0 (NSArray *)\i itemTitles\i0 Adds multiple items to the end of the item list. The titles for the new items are taken take from the \i itemTitles \i0 array\i .\
\fi-6552 \fi-6552 \i0 \fi-6552 {\f3 -} (void)\b insertItemWithTitle:\b0 (NSString *)\i title\i0 Inserts an item with \i title\i0 as its title at position \i index\i0 . \
\fs28 Querying the NSPopUpButton About Its Items \
\fs16 \
\fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (int)\b indexOfItemWithTitle:\b0 (NSString *)\i title\i0 Returns the index of the item whose title matches \i title\i0 , or NSNotFound if no match is found.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (int)\b indexOfSelectedItem\b0 Returns the index of the item last selected by the user, or NSNotFound if there\'27s no selected item.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (int)\b numberOfItems\b0 Returns the number of items in the receiver\'27s item list. \
\fi-6552 \fi-6552 \fi-6552 \
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSMenuCell *)\b itemAtIndex:\b0 (int)\i index\i0 Returns the NSMenuCell for the item at \i index\i0 , or \b nil\b0 if no such item exists.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSMatrix *)\b itemMatrix\b0 Returns the NSMatrix that holds the receiver\'27s items.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSString *)\b itemTitleAtIndex:\b0 (int)\i index\i0 Returns the title of the item at \i index\i0 , or the empty string if no such item exists.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSArray *)\b itemTitles\b0 Returns an NSArray that holds the titles of the receiver\'27s items.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSMenuCell *)\b itemWithTitle:\b0 (NSString *)\i title\i0 Returns the NSMenuCell for the item whose title is \i title\i0 , or \b nil\b0 if no such item exists\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSMenuCell *)\b selectedItem\b0 Returns the NSMenuCell for the selected item.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSString *)\b titleOfSelectedItem\b0 Returns the title of the item last selected by the user, or the empty string if there\'27s no such item.\
\fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (NSFont *)\b font\b0 Returns the font used to draw the items. \
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (BOOL)\b pullsDown\b0 Returns YES if the receiver is configured as a pull-down list, and NO if it\'27s configured as a pop-up list.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b selectItemAtIndex:\b0 (int)\i index\i0 Selects the item at \i index\i0 and invokes \b synchronizeTitleAndSelectedItem\b0 .\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b selectItemWithTitle:\b0 (NSString *)\i title\i0 Selects the item whose title is \i title\i0 and invokes \b synchronizeTitleAndSelectedItem\b0 .\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setFont:\b0 (NSFont *)\i fontObject\i0 Sets the font used to draw the items.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setPullsDown:\b0 (BOOL)\i flag\i0 If \i flag\i0 is YES, the receiver is configured as a pull-down list. If \i flag\i0 is NO, the receiver is configured as a pop-up list.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setTitle:\b0 (NSString *)\i aString\i0 Adds a new item (if the receiver doesn\'27t already have an item titled \i aString\i0 ) and invokes \b synchronizeTitleAndSelectedItem\b0 . \
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSString *)\b stringValue\b0 Returns the title of the selected item.\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b synchronizeTitleAndSelectedItem\b0 Ensures that the receiver\'27s title agrees with the title of the selected item (see \b indexOfSelectedItem\b0 ). If there\'27s no selected item, this method selects the first item in the item list and sets the receiver\'27s title to match. This method is useful in subclasses that directly select items in the item matrix or that override \b setTitle:\b0 .\
\fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (BOOL)\b autoenablesItems\b0 Returns whether the NSPopUpButton enables and disables its items. (See the NSMenuActionResponder informal protocol.)\
\fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setAutoenablesItems:\b0 (BOOL)\i flag\i0 Sets whether the NSPopUpButton enables and disables its items. (See the NSMenuActionResponder informal protocol.)\