1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-02-03 20:01:38 +00:00

pe cocoa: moved the details panel refreshing mechanism down to dgbase, and refactored the Consts unit.

--HG--
extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%4057
This commit is contained in:
hsoft
2009-06-15 12:53:47 +00:00
parent f0c234637d
commit e7be4177bc
6 changed files with 15 additions and 14 deletions

View File

@@ -10,4 +10,7 @@
- (id)initWithPy:(PyApp *)aPy;
- (void)refresh;
/* Notifications */
- (void)duplicateSelectionChanged:(NSNotification *)aNotification;
@end

View File

@@ -1,4 +1,5 @@
#import "DetailsPanel.h"
#import "Consts.h"
@implementation DetailsPanelBase
- (id)initWithPy:(PyApp *)aPy
@@ -6,6 +7,7 @@
self = [super initWithWindowNibName:@"Details"];
[self window]; //So the detailsTable is initialized.
[detailsTable setPy:aPy];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(duplicateSelectionChanged:) name:DuplicateSelectionChangedNotification object:nil];
return self;
}
@@ -13,4 +15,11 @@
{
[detailsTable reloadData];
}
/* Notifications */
- (void)duplicateSelectionChanged:(NSNotification *)aNotification
{
if ([[self window] isVisible])
[self refresh];
}
@end