2
3
4
5
6
7
8
(function find-talk (tl)
  (cond ((null tl) ())
        ((!= (tl-reply-id (car tl)) 0)
         (cons (list (car tl) (find-by-id tl (tl-reply-id (car tl))))
               (find-talk (cdr tl))))
        (else (find-talk (cdr tl)))))




(- (id) tableView:(id) aTableView objectValueForTableColumn:(id) aTableColumn
        row:(int) rowIndex is
    (case (aTableColumn identifier)
        ("icon"  
            ((NSImage alloc) initWithContentsOfURL:
             (NSURL URLWithString:(tl-icon (@timeLines objectAtIndex:rowIndex)))))
        ("name"  (tl-name (@timeLines objectAtIndex:rowIndex)))
        ("text"  (tl-text (@timeLines objectAtIndex:rowIndex)))
        (else "")))




                                       9
- (id)tableView:(NSTableView *)aTableView
      objectValueForTableColumn:(NSTableColumn *)aTableColumn
      row:(NSInteger)rowIndex
{
    NSArray *tl = [[timeLines objectAtIndex:rowIndex]
                   componentsSeparatedByString:@"t"];
    if ([[aTableColumn identifier] isEqualToString:@"icon"]) {
        return [[NSImage alloc] initWithContentsOfURL:
                [NSURL URLWithString:[tl objectAtIndex:2]]];
    } else if ([[aTableColumn identifier] isEqualToString:@"name"]) {
        return [tl objectAtIndex:0];
    } else if ([[aTableColumn identifier] isEqualToString:@"text"]) {
        return [tl objectAtIndex:1];
    } else {
        return @"";
    }
}




                                     10
11
12
13
15
16
17
18
19
20
20
20
20
- (id)tableView:(NSTableView *)aTableView
      objectValueForTableColumn:(NSTableColumn *)aTableColumn
      row:(NSInteger)rowIndex
{
    NSArray *tl = [[timeLines objectAtIndex:rowIndex]
                    componentsSeparatedByString:@"t"];
    if ([[aTableColumn identifier] isEqualToString:@"icon"]) {
        return [[NSImage alloc] initWithContentsOfURL:
                [NSURL URLWithString:[tl objectAtIndex:2]]];
    } else if ([[aTableColumn identifier] isEqualToString:@"name"]) {
        return [tl objectAtIndex:0];
    } else if ([[aTableColumn identifier] isEqualToString:@"text"]) {
        return [tl objectAtIndex:1];
    } else {
        return @"";
    }
}



                                 22
(- (id) tableView:(id) aTableView
        objectValueForTableColumn:(id) aTableColumn
        row:(int) rowIndex is
    (case (aTableColumn identifier)
        ("icon"  
            ((NSImage alloc) initWithContentsOfURL:
             (NSURL URLWithString:
                    (tl-icon (@timeLines objectAtIndex:rowIndex)))))
        ("name"  (tl-name (@timeLines objectAtIndex:rowIndex)))
        ("text"  (tl-text (@timeLines objectAtIndex:rowIndex)))
        (else "")))




                                23
25
26
27

Nu program language on Shibuya.lisp#5 LT

  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
    (function find-talk (tl) (cond ((null tl) ()) ((!= (tl-reply-id (car tl)) 0) (cons (list (car tl) (find-by-id tl (tl-reply-id (car tl)))) (find-talk (cdr tl)))) (else (find-talk (cdr tl))))) (- (id) tableView:(id) aTableView objectValueForTableColumn:(id) aTableColumn row:(int) rowIndex is     (case (aTableColumn identifier)         ("icon"               ((NSImage alloc) initWithContentsOfURL:              (NSURL URLWithString:(tl-icon (@timeLines objectAtIndex:rowIndex)))))         ("name"  (tl-name (@timeLines objectAtIndex:rowIndex)))         ("text"  (tl-text (@timeLines objectAtIndex:rowIndex)))         (else ""))) 9
  • 10.
    - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn       row:(NSInteger)rowIndex {     NSArray *tl = [[timeLines objectAtIndex:rowIndex] componentsSeparatedByString:@"t"];     if ([[aTableColumn identifier] isEqualToString:@"icon"]) {         return [[NSImage alloc] initWithContentsOfURL:                 [NSURL URLWithString:[tl objectAtIndex:2]]];     } else if ([[aTableColumn identifier] isEqualToString:@"name"]) {         return [tl objectAtIndex:0];     } else if ([[aTableColumn identifier] isEqualToString:@"text"]) {         return [tl objectAtIndex:1];     } else {         return @"";     } } 10
  • 11.
  • 12.
  • 13.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 28.
    - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn       row:(NSInteger)rowIndex {     NSArray *tl = [[timeLines objectAtIndex:rowIndex] componentsSeparatedByString:@"t"];     if ([[aTableColumn identifier] isEqualToString:@"icon"]) {         return [[NSImage alloc] initWithContentsOfURL:                 [NSURL URLWithString:[tl objectAtIndex:2]]];     } else if ([[aTableColumn identifier] isEqualToString:@"name"]) {         return [tl objectAtIndex:0];     } else if ([[aTableColumn identifier] isEqualToString:@"text"]) {         return [tl objectAtIndex:1];     } else {         return @"";     } } 22
  • 29.
    (- (id) tableView:(id)aTableView objectValueForTableColumn:(id) aTableColumn row:(int) rowIndex is     (case (aTableColumn identifier)         ("icon"               ((NSImage alloc) initWithContentsOfURL:              (NSURL URLWithString: (tl-icon (@timeLines objectAtIndex:rowIndex)))))         ("name"  (tl-name (@timeLines objectAtIndex:rowIndex)))         ("text"  (tl-text (@timeLines objectAtIndex:rowIndex)))         (else ""))) 23
  • 31.
  • 32.
  • 33.