From 9b3909e7592d3c8648accb67642a2b57a441f128 Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Tue, 23 Sep 2008 21:51:20 +0200 Subject: [PATCH] CommitView: Add a status bar to the diff view --- PBChangedFile.m | 10 ++++++++++ PBWebChangesController.m | 3 +-- html/diff.html | 40 ++++++++++++++++++++++++++++++++++------ 3 files changed, 45 insertions(+), 8 deletions(-) diff --git a/PBChangedFile.m b/PBChangedFile.m index a0fb04d..936dd5c 100644 --- a/PBChangedFile.m +++ b/PBChangedFile.m @@ -46,4 +46,14 @@ NSString *p = [[NSBundle mainBundle] pathForResource:filename ofType:@"png"]; return [[NSImage alloc] initByReferencingFile: p]; } + ++ (BOOL)isSelectorExcludedFromWebScript:(SEL)aSelector +{ + return NO; +} + ++ (BOOL)isKeyExcludedFromWebScript:(const char *)name { + return NO; +} + @end diff --git a/PBWebChangesController.m b/PBWebChangesController.m index 2eb1e3a..1d1ae67 100644 --- a/PBWebChangesController.m +++ b/PBWebChangesController.m @@ -53,7 +53,6 @@ static PBChangedFile *lastFileSelected = nil; - (void) showDiff:(PBChangedFile *)file { id script = [view windowScriptObject]; - NSString *changes = [file changes]; - [script callWebScriptMethod:@"showDiff" withArguments:[NSArray arrayWithObject:changes]]; + [script callWebScriptMethod:@"showFileChanges" withArguments:[NSArray arrayWithObject:file]]; } @end diff --git a/html/diff.html b/html/diff.html index b3ead39..6edbf3b 100644 --- a/html/diff.html +++ b/html/diff.html @@ -7,18 +7,46 @@ + - +

Here comes the title

Hey
\ No newline at end of file