From: Andrew M. <fit...@us...> - 2007-12-06 21:54:24
|
Update of /cvsroot/radmind/radmind-assistant/rsm In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv6131 Modified Files: RSMLoadsetEditor.h RSMLoadsetEditor.m Log Message: Just use a text field for special client names. Index: RSMLoadsetEditor.h =================================================================== RCS file: /cvsroot/radmind/radmind-assistant/rsm/RSMLoadsetEditor.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** RSMLoadsetEditor.h 3 Jun 2007 03:23:39 -0000 1.8 --- RSMLoadsetEditor.h 6 Dec 2007 21:54:19 -0000 1.9 *************** *** 45,49 **** IBOutlet NSPanel *specialSheet; IBOutlet NSPopUpButton *specialTranscriptPopUp; ! IBOutlet NSPopUpButton *specialClientPopUp; @private --- 45,49 ---- IBOutlet NSPanel *specialSheet; IBOutlet NSPopUpButton *specialTranscriptPopUp; ! IBOutlet NSTextField *specialClientName; @private Index: RSMLoadsetEditor.m =================================================================== RCS file: /cvsroot/radmind/radmind-assistant/rsm/RSMLoadsetEditor.m,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** RSMLoadsetEditor.m 4 Dec 2007 22:07:57 -0000 1.20 --- RSMLoadsetEditor.m 6 Dec 2007 21:54:19 -0000 1.21 *************** *** 693,697 **** - ( void )addSpecialFileToCurrentCommandFile: ( id )sender { ! NSArray *clients = nil, *loadsets = nil; unsigned int i; --- 693,697 ---- - ( void )addSpecialFileToCurrentCommandFile: ( id )sender { ! NSArray *loadsets = nil; unsigned int i; *************** *** 707,716 **** } - [ specialClientPopUp removeAllItems ]; - if (( clients = [[ self delegate ] validClients ] ) == nil ) { - return; - } - [ specialClientPopUp addItemsWithTitles: clients ]; - [ NSApp beginSheet: specialSheet modalForWindow: loadsetWindow --- 707,710 ---- *************** *** 723,727 **** { NSString *specialTranscript = [ specialTranscriptPopUp titleOfSelectedItem ]; ! NSString *clientName = [ specialClientPopUp titleOfSelectedItem ]; [ specialSheet orderOut: nil ]; --- 717,726 ---- { NSString *specialTranscript = [ specialTranscriptPopUp titleOfSelectedItem ]; ! NSString *clientName = [ specialClientName stringValue ]; ! ! if ( !clientName || [ clientName length ] == 0 ) { ! NSBeep(); ! return; ! } [ specialSheet orderOut: nil ]; |