1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

Add Find to edit menu, since find can be useful for debugging.

This commit is contained in:
Mitchell Livingston 2006-08-22 20:39:52 +00:00
parent 368e7b4c4e
commit 8efe17e072
3 changed files with 4 additions and 3 deletions

View file

@ -31,8 +31,8 @@
<integer>3</integer>
<key>IBOpenObjects</key>
<array>
<integer>21</integer>
<integer>29</integer>
<integer>21</integer>
</array>
<key>IBSystem Version</key>
<string>8J135</string>

Binary file not shown.

View file

@ -46,6 +46,7 @@
fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
[NSFont fontWithName: @"Monaco" size: 10], NSFontAttributeName,
paragraph, NSParagraphStyleAttributeName, nil];
[paragraph release];
[[self window] update]; //make sure nib is loaded right away
}
@ -90,7 +91,7 @@
NSScroller * scroller = [fScrollView verticalScroller];
BOOL shouldScroll = [scroller floatValue] == 1.0 || [scroller isHidden] || [scroller knobProportion] == 1.0;
NSMutableAttributedString * messageString;
NSAttributedString * messageString;
NSString * levelString, * dateString;
for (currentMessage = messages; currentMessage != NULL; currentMessage = currentMessage->next)
{
@ -111,7 +112,7 @@
dateString = [[NSDate dateWithTimeIntervalSince1970: currentMessage->when]
descriptionWithCalendarFormat: @"%1m/%d %H:%M:%S" timeZone: nil locale: nil];
messageString = [[[NSMutableAttributedString alloc] initWithString: [NSString stringWithFormat: @"%@ %@ %s",
messageString = [[[NSAttributedString alloc] initWithString: [NSString stringWithFormat: @"%@ %@ %s",
dateString, levelString, currentMessage->message] attributes: fAttributes] autorelease];
[[fTextView textStorage] appendAttributedString: messageString];