This is PopUpButton.m in view mode; [Download] [Up]
#import "PopUpButton.h" @implementation Button (PopUpButton) - setPopUpTitle: (const char *)str { int index = [[self target] indexOfItem: str]; if(index == -1) return nil; [self setTitle: str]; [[[self target] itemList] selectCellAt: index : 0]; return self; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.