Changeset 1331
- Timestamp:
- 05/23/04 22:30:45 (4 years ago)
- Files:
-
- WiredClient/trunk/WCChat.h (modified) (3 diffs)
- WiredClient/trunk/WCFiles.h (modified) (2 diffs)
- WiredClient/trunk/WCOutlineView.m (modified) (2 diffs)
- WiredClient/trunk/WCSearch.h (modified) (2 diffs)
- WiredClient/trunk/WCTableView.h (modified) (2 diffs)
- WiredClient/trunk/WCTableView.m (modified) (4 diffs)
- WiredClient/trunk/WCTrackers.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCChat.h
r1316 r1331 1 /* $Id: WCChat.h,v 1.1 4 2004/05/23 03:29:02morris Exp $ */1 /* $Id: WCChat.h,v 1.15 2004/05/23 20:30:45 morris Exp $ */ 2 2 3 3 /* … … 31 31 @class WCConnection, WCSplitView, WCTextView, WCTableView; 32 32 33 @protocol WCTableViewMenuValidation, WCTableViewInfoCopying, WCTableViewToolTipDisplaying; 34 @protocol WCTableViewTypingAhead; 33 @protocol WCTableViewMenuValidation; 35 34 36 35 @protocol WCGetInfoValidation … … 42 41 @end 43 42 44 @interface WCChat : WCWindowController <WCGetInfoValidation , WCTableViewInfoCopying, WCTableViewToolTipDisplaying, WCTableViewTypingAhead> {43 @interface WCChat : WCWindowController <WCGetInfoValidation> { 45 44 IBOutlet WCSplitView *_chatSplitView; 46 45 IBOutlet NSScrollView *_chatOutputScrollView; WiredClient/trunk/WCFiles.h
r1316 r1331 1 /* $Id: WCFiles.h,v 1. 8 2004/05/23 03:29:02morris Exp $ */1 /* $Id: WCFiles.h,v 1.9 2004/05/23 20:30:45 morris Exp $ */ 2 2 3 3 /* … … 31 31 @class WCConnection, WCFile, WCTableView; 32 32 33 @protocol WCGetInfoValidation, WCTableViewInfoCopying, WCTableViewOptionsSelection; 34 @protocol WCTableViewTypingAhead, WCTableViewToolTipDisplaying; 33 @protocol WCGetInfoValidation, WCTableViewOptionsSelection; 35 34 36 @interface WCFiles : WCWindowController <WCGetInfoValidation, WCTableView InfoCopying, WCTableViewOptionsSelection, WCTableViewTypingAhead, WCTableViewToolTipDisplaying> {35 @interface WCFiles : WCWindowController <WCGetInfoValidation, WCTableViewOptionsSelection> { 37 36 IBOutlet WCTableView *_filesTableView; 38 37 IBOutlet NSScrollView *_filesScrollView; WiredClient/trunk/WCOutlineView.m
r1142 r1331 1 /* $Id: WCOutlineView.m,v 1. 1 2004/05/06 15:18:01morris Exp $ */1 /* $Id: WCOutlineView.m,v 1.2 2004/05/23 20:30:45 morris Exp $ */ 2 2 3 3 /* … … 63 63 64 64 - (void)copy:(id)sender { 65 if([[self delegate] conformsToProtocol:@protocol(WCOutlineViewInfoCopying)])65 if([[self delegate] respondsToSelector:@selector(outlineViewShouldCopyInfo:)]) 66 66 [[self delegate] outlineViewShouldCopyInfo:self]; 67 67 } WiredClient/trunk/WCSearch.h
r1316 r1331 1 /* $Id: WCSearch.h,v 1. 5 2004/05/23 03:29:02morris Exp $ */1 /* $Id: WCSearch.h,v 1.6 2004/05/23 20:30:45 morris Exp $ */ 2 2 3 3 /* … … 31 31 @class WCTableView, WCConnection; 32 32 33 @protocol WCGetInfoValidation, WCTableViewInfoCopying, WCTableViewOptionsSelection; 34 @protocol WCTableViewTypingAhead, WCTableViewToolTipDisplaying; 33 @protocol WCGetInfoValidation, WCTableViewOptionsSelection; 35 34 36 @interface WCSearch : WCWindowController <WCGetInfoValidation, WCTableView InfoCopying, WCTableViewOptionsSelection, WCTableViewTypingAhead, WCTableViewToolTipDisplaying> {35 @interface WCSearch : WCWindowController <WCGetInfoValidation, WCTableViewOptionsSelection> { 37 36 IBOutlet WCTableView *_searchTableView; 38 37 WiredClient/trunk/WCTableView.h
r1316 r1331 1 /* $Id: WCTableView.h,v 1. 5 2004/05/23 03:29:02morris Exp $ */1 /* $Id: WCTableView.h,v 1.6 2004/05/23 20:30:45 morris Exp $ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 @protocol WCTableViewInfoCopying30 31 - (void) tableViewShouldCopyInfo:(NSTableView *)sender;32 33 @end34 35 36 @protocol WCTableViewTypingAhead37 38 - (NSString *) tableView:(NSTableView *)tableView stringValueForRow:(int)row;39 40 @end41 42 @protocol WCTableViewToolTipDisplaying43 44 - (NSString *) tableView:(NSTableView *)tableView toolTipForRow:(int)row;45 46 @end47 48 49 29 @interface WCTableView : NSTableView { 50 30 NSMutableString *_typeAheadString; WiredClient/trunk/WCTableView.m
r1316 r1331 1 /* $Id: WCTableView.m,v 1. 7 2004/05/23 03:29:02morris Exp $ */1 /* $Id: WCTableView.m,v 1.8 2004/05/23 20:30:45 morris Exp $ */ 2 2 3 3 /* … … 103 103 if(key == NSEnterCharacter || key == NSCarriageReturnCharacter) 104 104 [super doCommandBySelector:[super doubleAction]]; 105 else if([[self dataSource] conformsToProtocol:@protocol(WCTableViewTypingAhead)] &&105 else if([[self dataSource] respondsToSelector:@selector(tableView:stringValueForRow:)] && 106 106 [_typeAheadCharacterSet characterIsMember:key]) 107 107 [self interpretKeyEvents:[NSArray arrayWithObject:event]]; … … 162 162 163 163 - (void)copy:(id)sender { 164 if([[self delegate] conformsToProtocol:@protocol(WCTableViewInfoCopying)])164 if([[self delegate] respondsToSelector:@selector(tableViewShouldCopyInfo:)]) 165 165 [[self delegate] tableViewShouldCopyInfo:self]; 166 166 } … … 204 204 row = [self rowAtPoint:point]; 205 205 206 if(row >= 0 && [[self dataSource] conformsToProtocol:@protocol(WCTableViewToolTipDisplaying)])206 if(row >= 0 && [[self dataSource] respondsToSelector:@selector(tableView:toolTipForRow:)]) 207 207 return [[self dataSource] tableView:self toolTipForRow:row]; 208 208 WiredClient/trunk/WCTrackers.h
r1298 r1331 1 /* $Id: WCTrackers.h,v 1. 7 2004/05/22 02:18:09morris Exp $ */1 /* $Id: WCTrackers.h,v 1.8 2004/05/23 20:30:45 morris Exp $ */ 2 2 3 3 /* … … 31 31 @class WCTracker; 32 32 33 @protocol WCTableViewOptionsSelection , WCOutlineViewInfoCopying;33 @protocol WCTableViewOptionsSelection; 34 34 35 @interface WCTrackers : WCWindowController <WCTableViewOptionsSelection , WCOutlineViewInfoCopying> {35 @interface WCTrackers : WCWindowController <WCTableViewOptionsSelection> { 36 36 IBOutlet NSTextField *_statusTextField; 37 37
