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:
@@ -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];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user