ftp.nice.ch/pub/next/connectivity/mail/apps/MailEnclosure.0.15.NIHS.bs.tar.gz#/MailEnclosure/Source.v0.15/PopUpButton.m

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.