1. Erik Romijn
  2. twifi

Commits

Erik Romijn  committed 30ec147

bigger fonts

  • Participants
  • Parent commits 35e0b7f
  • Branches default

Comments (0)

Files changed (1)

File Twifi/TWAppDelegate.m

View file
  • Ignore whitespace
     if (selCell.tag < 2) return;
     
     NSString *plainText = [NSString stringWithFormat:@"Found website login: http://%@ - %@", url, auth];
-    NSAttributedString *text = [[NSAttributedString alloc] initWithString:[plainText stringByAppendingString:@"\n"]];
+
+    NSFont *font = [NSFont fontWithName:@"Helvetica" size:17.0];
+    NSDictionary *attrsDictionary = [NSDictionary dictionaryWithObject:font forKey:NSFontAttributeName];
+    
+    NSAttributedString *text = [[NSAttributedString alloc] initWithString:[plainText stringByAppendingString:@"\n"] attributes:attrsDictionary];
 
     NSTextStorage *storage = [self.logOutput textStorage];
     [storage beginEditing];
     [storage appendAttributedString:text];
     [storage endEditing];
     
-    [self sendTweet:[plainText stringByAppendingString:@" #twifi"]];
+//    [self sendTweet:[plainText stringByAppendingString:@" #twifi"]];
 }
 
 
     self.lastGoogleQuery = search;
 
     NSString *plainText = [NSString stringWithFormat:@"Google query: %@\n", search];
-    NSAttributedString *text = [[NSAttributedString alloc] initWithString:plainText];
     
+    NSFont *font = [NSFont fontWithName:@"Helvetica" size:17.0];
+    NSDictionary *attrsDictionary = [NSDictionary dictionaryWithObject:font forKey:NSFontAttributeName];
+    
+    NSAttributedString *text = [[NSAttributedString alloc] initWithString:plainText attributes:attrsDictionary];
+
     NSTextStorage *storage = [self.logOutput textStorage];
     [storage beginEditing];
     [storage appendAttributedString:text];
     if (selCell.tag < 3) return;
     
     NSString *plainText = [NSString stringWithFormat:@"Found session: http://%@ - %@: %@\n", url, name, data];
-    NSAttributedString *text = [[NSAttributedString alloc] initWithString:plainText];
+
+    NSFont *font = [NSFont fontWithName:@"Helvetica" size:17.0];
+    NSDictionary *attrsDictionary = [NSDictionary dictionaryWithObject:font forKey:NSFontAttributeName];
+    
+    NSAttributedString *text = [[NSAttributedString alloc] initWithString:plainText attributes:attrsDictionary];
     
     NSTextStorage *storage = [self.logOutput textStorage];
     [storage beginEditing];