Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion FlashbackChecker/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,21 @@ - (IBAction)checkForInfection:(id)aSender
[self log:@"No Signs of infection were found."];
}

NSString* theVisit = @"\n\nVisit the F-Secure site for more information:\nhttp://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml";
NSString* theVisit = @"\n\nVisit the F-Secure site for more information:";
[self log:theVisit];

// There must be a simpler way to do this, right?
NSMutableAttributedString* attrString = [[NSMutableAttributedString alloc] initWithString:@"http://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml"];
NSRange range = NSMakeRange(0, [attrString length]);
[attrString beginEditing];
[attrString addAttribute:NSLinkAttributeName value:[[NSURL URLWithString:@"http://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml"] absoluteString] range:range];
[attrString addAttribute:NSForegroundColorAttributeName value:[NSColor blueColor] range:range];
[attrString addAttribute:
NSUnderlineStyleAttributeName value:[NSNumber numberWithInt:NSSingleUnderlineStyle] range:range];
[attrString endEditing];

[[textView textStorage] appendAttributedString:attrString];
[attrString autorelease];
}


Expand Down