1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-23 07:01:39 +00:00

Pushed connect() calls in objc into the core.

--HG--
branch : objp
This commit is contained in:
Virgil Dupras
2012-01-13 16:34:21 -05:00
parent 58347bc36f
commit 9392f818cc
9 changed files with 13 additions and 31 deletions

View File

@@ -16,13 +16,11 @@ http://www.hardcoded.net/licenses/bsd_license
[self window]; //So the detailsTable is initialized.
model = [[PyDetailsPanel alloc] initWithModel:aPyRef];
[model bindCallback:createCallback(@"DetailsPanelView", self)];
[model connect];
return self;
}
- (void)dealloc
{
[model disconnect];
[model release];
[super dealloc];
}

View File

@@ -17,16 +17,9 @@ http://www.hardcoded.net/licenses/bsd_license
[model bindCallback:createCallback(@"DirectoryOutlineView", self)];
[model release];
[outlineView registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];
[[self py] connect];
return self;
}
- (void)dealloc
{
[[self py] disconnect];
[super dealloc];
}
- (PyDirectoryOutline *)py
{
return (PyDirectoryOutline *)py;

View File

@@ -19,13 +19,11 @@ http://www.hardcoded.net/licenses/bsd_license
categoryPopUp = [[HSPopUpList alloc] initWithPyRef:[[self model] categoryList] popupView:categoryPopUpView];
criteriaList = [[HSSelectableList alloc] initWithPyRef:[[self model] criteriaList] tableView:criteriaTableView];
prioritizationList = [[PrioritizeList alloc] initWithPyRef:[[self model] prioritizationList] tableView:prioritizationTableView];
[model connect];
return self;
}
- (void)dealloc
{
[model disconnect];
[categoryPopUp release];
[criteriaList release];
[prioritizationList release];

View File

@@ -17,15 +17,11 @@ http://www.hardcoded.net/licenses/bsd_license
model = [[PyProblemDialog alloc] initWithModel:aPyRef];
problemTable = [[HSTable alloc] initWithPyRef:[model problemTable] tableView:problemTableView];
[self initializeColumns];
[model connect];
[[problemTable model] connect];
return self;
}
- (void)dealloc
{
[[problemTable model] disconnect];
[model disconnect];
[problemTable release];
[model release];
[super dealloc];

View File

@@ -25,13 +25,11 @@ http://www.hardcoded.net/licenses/bsd_license
[m bindCallback:createCallback(@"ResultTableView", self)];
[m release];
_deltaColumns = [[NSSet setWithArray:[[self model] deltaColumns]] retain];
[model connect];
return self;
}
- (void)dealloc
{
[model disconnect];
[_deltaColumns release];
[super dealloc];
}

View File

@@ -15,19 +15,10 @@ http://www.hardcoded.net/licenses/bsd_license
PyStatsLabel *m = [[PyStatsLabel alloc] initWithModel:aPyRef];
self = [self initWithModel:m view:aLabelView];
[m bindCallback:createCallback(@"StatsLabelView", self)];
[m connect];
[m release];
return self;
}
- (void)dealloc
{
[[self model] disconnect];
[model release];
[view release];
[super dealloc];
}
- (PyStatsLabel *)model
{
return (PyStatsLabel *)model;