Changeset 1331

Show
Ignore:
Timestamp:
05/23/04 22:30:45 (4 years ago)
Author:
morris
Message:

make the tableview extensions into informal protocols instead of formal

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCChat.h

    r1316 r1331  
    1 /* $Id: WCChat.h,v 1.14 2004/05/23 03:29:02 morris Exp $ */ 
     1/* $Id: WCChat.h,v 1.15 2004/05/23 20:30:45 morris Exp $ */ 
    22 
    33/* 
     
    3131@class WCConnection, WCSplitView, WCTextView, WCTableView; 
    3232 
    33 @protocol WCTableViewMenuValidation, WCTableViewInfoCopying, WCTableViewToolTipDisplaying; 
    34 @protocol WCTableViewTypingAhead; 
     33@protocol WCTableViewMenuValidation; 
    3534 
    3635@protocol WCGetInfoValidation 
     
    4241@end 
    4342 
    44 @interface WCChat : WCWindowController <WCGetInfoValidation, WCTableViewInfoCopying, WCTableViewToolTipDisplaying, WCTableViewTypingAhead> { 
     43@interface WCChat : WCWindowController <WCGetInfoValidation> { 
    4544        IBOutlet WCSplitView                    *_chatSplitView; 
    4645        IBOutlet NSScrollView                   *_chatOutputScrollView; 
  • WiredClient/trunk/WCFiles.h

    r1316 r1331  
    1 /* $Id: WCFiles.h,v 1.8 2004/05/23 03:29:02 morris Exp $ */ 
     1/* $Id: WCFiles.h,v 1.9 2004/05/23 20:30:45 morris Exp $ */ 
    22 
    33/* 
     
    3131@class WCConnection, WCFile, WCTableView; 
    3232 
    33 @protocol WCGetInfoValidation, WCTableViewInfoCopying, WCTableViewOptionsSelection; 
    34 @protocol WCTableViewTypingAhead, WCTableViewToolTipDisplaying; 
     33@protocol WCGetInfoValidation, WCTableViewOptionsSelection; 
    3534 
    36 @interface WCFiles : WCWindowController <WCGetInfoValidation, WCTableViewInfoCopying, WCTableViewOptionsSelection, WCTableViewTypingAhead, WCTableViewToolTipDisplaying> { 
     35@interface WCFiles : WCWindowController <WCGetInfoValidation, WCTableViewOptionsSelection> { 
    3736        IBOutlet WCTableView                    *_filesTableView; 
    3837        IBOutlet NSScrollView                   *_filesScrollView; 
  • WiredClient/trunk/WCOutlineView.m

    r1142 r1331  
    1 /* $Id: WCOutlineView.m,v 1.1 2004/05/06 15:18:01 morris Exp $ */ 
     1/* $Id: WCOutlineView.m,v 1.2 2004/05/23 20:30:45 morris Exp $ */ 
    22 
    33/* 
     
    6363 
    6464- (void)copy:(id)sender { 
    65         if([[self delegate] conformsToProtocol:@protocol(WCOutlineViewInfoCopying)]) 
     65        if([[self delegate] respondsToSelector:@selector(outlineViewShouldCopyInfo:)]) 
    6666                [[self delegate] outlineViewShouldCopyInfo:self]; 
    6767} 
  • WiredClient/trunk/WCSearch.h

    r1316 r1331  
    1 /* $Id: WCSearch.h,v 1.5 2004/05/23 03:29:02 morris Exp $ */ 
     1/* $Id: WCSearch.h,v 1.6 2004/05/23 20:30:45 morris Exp $ */ 
    22 
    33/* 
     
    3131@class WCTableView, WCConnection; 
    3232 
    33 @protocol WCGetInfoValidation, WCTableViewInfoCopying, WCTableViewOptionsSelection; 
    34 @protocol WCTableViewTypingAhead, WCTableViewToolTipDisplaying; 
     33@protocol WCGetInfoValidation, WCTableViewOptionsSelection; 
    3534 
    36 @interface WCSearch : WCWindowController <WCGetInfoValidation, WCTableViewInfoCopying, WCTableViewOptionsSelection, WCTableViewTypingAhead, WCTableViewToolTipDisplaying> { 
     35@interface WCSearch : WCWindowController <WCGetInfoValidation, WCTableViewOptionsSelection> { 
    3736        IBOutlet WCTableView                    *_searchTableView; 
    3837         
  • WiredClient/trunk/WCTableView.h

    r1316 r1331  
    1 /* $Id: WCTableView.h,v 1.5 2004/05/23 03:29:02 morris Exp $ */ 
     1/* $Id: WCTableView.h,v 1.6 2004/05/23 20:30:45 morris Exp $ */ 
    22 
    33/* 
     
    2727 */ 
    2828 
    29 @protocol WCTableViewInfoCopying 
    30  
    31 - (void)                                        tableViewShouldCopyInfo:(NSTableView *)sender; 
    32  
    33 @end 
    34  
    35  
    36 @protocol WCTableViewTypingAhead 
    37  
    38 - (NSString *)                          tableView:(NSTableView *)tableView stringValueForRow:(int)row; 
    39  
    40 @end 
    41  
    42 @protocol WCTableViewToolTipDisplaying 
    43  
    44 - (NSString *)                          tableView:(NSTableView *)tableView toolTipForRow:(int)row; 
    45  
    46 @end 
    47  
    48  
    4929@interface WCTableView : NSTableView { 
    5030        NSMutableString                 *_typeAheadString; 
  • WiredClient/trunk/WCTableView.m

    r1316 r1331  
    1 /* $Id: WCTableView.m,v 1.7 2004/05/23 03:29:02 morris Exp $ */ 
     1/* $Id: WCTableView.m,v 1.8 2004/05/23 20:30:45 morris Exp $ */ 
    22 
    33/* 
     
    103103        if(key == NSEnterCharacter || key == NSCarriageReturnCharacter) 
    104104                [super doCommandBySelector:[super doubleAction]]; 
    105         else if([[self dataSource] conformsToProtocol:@protocol(WCTableViewTypingAhead)] && 
     105        else if([[self dataSource] respondsToSelector:@selector(tableView:stringValueForRow:)] && 
    106106                        [_typeAheadCharacterSet characterIsMember:key]) 
    107107                [self interpretKeyEvents:[NSArray arrayWithObject:event]]; 
     
    162162 
    163163- (void)copy:(id)sender { 
    164         if([[self delegate] conformsToProtocol:@protocol(WCTableViewInfoCopying)]) 
     164        if([[self delegate] respondsToSelector:@selector(tableViewShouldCopyInfo:)]) 
    165165                [[self delegate] tableViewShouldCopyInfo:self]; 
    166166} 
     
    204204        row = [self rowAtPoint:point]; 
    205205 
    206         if(row >= 0 && [[self dataSource] conformsToProtocol:@protocol(WCTableViewToolTipDisplaying)]) 
     206        if(row >= 0 && [[self dataSource] respondsToSelector:@selector(tableView:toolTipForRow:)]) 
    207207                return [[self dataSource] tableView:self toolTipForRow:row]; 
    208208 
  • WiredClient/trunk/WCTrackers.h

    r1298 r1331  
    1 /* $Id: WCTrackers.h,v 1.7 2004/05/22 02:18:09 morris Exp $ */ 
     1/* $Id: WCTrackers.h,v 1.8 2004/05/23 20:30:45 morris Exp $ */ 
    22 
    33/* 
     
    3131@class WCTracker; 
    3232 
    33 @protocol WCTableViewOptionsSelection, WCOutlineViewInfoCopying
     33@protocol WCTableViewOptionsSelection
    3434 
    35 @interface WCTrackers : WCWindowController <WCTableViewOptionsSelection, WCOutlineViewInfoCopying> { 
     35@interface WCTrackers : WCWindowController <WCTableViewOptionsSelection> { 
    3636        IBOutlet NSTextField                    *_statusTextField; 
    3737