Changeset 11948 for lang

Show
Ignore:
Timestamp:
05/19/08 01:11:46 (5 years ago)
Author:
mootoh
Message:

tags now work fine

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-c/HatebuCoreData/HatenaBookmarkTest.m

    r11895 r11948  
    101101  NSString *suffix = @" testEditUriPost"; 
    102102  NSString *newTitle = [NSString stringWithFormat:@"%@ %@", oldTitle, suffix]; 
     103  NSString *newSummary = [NSString stringWithFormat:@"%@ %@", oldSummary, suffix]; 
    103104 
    104   NSString *newSummary = [NSString stringWithFormat:@"%@ %@", oldSummary, suffix]; 
     105 
     106  NSArray *tags = [[doc rootElement] elementsForName: @"dc:subject"]; 
     107  for (NSXMLElement *t in tags) { 
     108    NSString *name = [t stringValue]; 
     109    newSummary = [NSString stringWithFormat:@"[%@]%@", name, newSummary]; 
     110  } 
    105111 
    106112  [oldTitleElm setStringValue:newTitle];