diff --git a/Ample/Base.lproj/LogWindow.xib b/Ample/Base.lproj/LogWindow.xib index 8e36756..2a8ee2a 100644 --- a/Ample/Base.lproj/LogWindow.xib +++ b/Ample/Base.lproj/LogWindow.xib @@ -21,7 +21,7 @@ - + @@ -52,10 +52,31 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/Ample/LogWindowController.m b/Ample/LogWindowController.m index 55ce845..d73d307 100644 --- a/Ample/LogWindowController.m +++ b/Ample/LogWindowController.m @@ -197,4 +197,12 @@ static NSMutableSet *LogWindows; [LogWindows removeObject: self]; } +#pragma mark - IBActions + +- (IBAction)clearLog:(id)sender { + NSAttributedString *empty = [NSAttributedString new]; + [[_textView textStorage] setAttributedString: empty]; +} + + @end