Nu program language on Shibuya.lisp#5 LT

1,822 views
1,785 views

Published on

Shibuya.lisp#5 LT

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,822
On SlideShare
0
From Embeds
0
Number of Embeds
846
Actions
Shares
0
Downloads
4
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide































  • Nu program language on Shibuya.lisp#5 LT

    1. 1. 2
    2. 2. 3
    3. 3. 4
    4. 4. 5
    5. 5. 6
    6. 6. 7
    7. 7. 8
    8. 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
    9. 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
    10. 10. 11
    11. 11. 12
    12. 12. 13
    13. 13. 15
    14. 14. 16
    15. 15. 17
    16. 16. 18
    17. 17. 19
    18. 18. 20
    19. 19. 20
    20. 20. 20
    21. 21. 20
    22. 22. - (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
    23. 23. (- (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
    24. 24. 25
    25. 25. 26
    26. 26. 27

    ×