Add Find to edit menu, since find can be useful for debugging.
This commit is contained in:
parent
368e7b4c4e
commit
8efe17e072
|
@ -31,8 +31,8 @@
|
||||||
<integer>3</integer>
|
<integer>3</integer>
|
||||||
<key>IBOpenObjects</key>
|
<key>IBOpenObjects</key>
|
||||||
<array>
|
<array>
|
||||||
<integer>21</integer>
|
|
||||||
<integer>29</integer>
|
<integer>29</integer>
|
||||||
|
<integer>21</integer>
|
||||||
</array>
|
</array>
|
||||||
<key>IBSystem Version</key>
|
<key>IBSystem Version</key>
|
||||||
<string>8J135</string>
|
<string>8J135</string>
|
||||||
|
|
Binary file not shown.
|
@ -46,6 +46,7 @@
|
||||||
fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
|
fAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
|
||||||
[NSFont fontWithName: @"Monaco" size: 10], NSFontAttributeName,
|
[NSFont fontWithName: @"Monaco" size: 10], NSFontAttributeName,
|
||||||
paragraph, NSParagraphStyleAttributeName, nil];
|
paragraph, NSParagraphStyleAttributeName, nil];
|
||||||
|
[paragraph release];
|
||||||
|
|
||||||
[[self window] update]; //make sure nib is loaded right away
|
[[self window] update]; //make sure nib is loaded right away
|
||||||
}
|
}
|
||||||
|
@ -90,7 +91,7 @@
|
||||||
NSScroller * scroller = [fScrollView verticalScroller];
|
NSScroller * scroller = [fScrollView verticalScroller];
|
||||||
BOOL shouldScroll = [scroller floatValue] == 1.0 || [scroller isHidden] || [scroller knobProportion] == 1.0;
|
BOOL shouldScroll = [scroller floatValue] == 1.0 || [scroller isHidden] || [scroller knobProportion] == 1.0;
|
||||||
|
|
||||||
NSMutableAttributedString * messageString;
|
NSAttributedString * messageString;
|
||||||
NSString * levelString, * dateString;
|
NSString * levelString, * dateString;
|
||||||
for (currentMessage = messages; currentMessage != NULL; currentMessage = currentMessage->next)
|
for (currentMessage = messages; currentMessage != NULL; currentMessage = currentMessage->next)
|
||||||
{
|
{
|
||||||
|
@ -111,7 +112,7 @@
|
||||||
|
|
||||||
dateString = [[NSDate dateWithTimeIntervalSince1970: currentMessage->when]
|
dateString = [[NSDate dateWithTimeIntervalSince1970: currentMessage->when]
|
||||||
descriptionWithCalendarFormat: @"%1m/%d %H:%M:%S" timeZone: nil locale: nil];
|
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];
|
dateString, levelString, currentMessage->message] attributes: fAttributes] autorelease];
|
||||||
|
|
||||||
[[fTextView textStorage] appendAttributedString: messageString];
|
[[fTextView textStorage] appendAttributedString: messageString];
|
||||||
|
|
Loading…
Reference in New Issue