1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-03-10 05:34:36 +00:00

Converted objp code to 2-steps instantiation.

--HG--
branch : objp
This commit is contained in:
Virgil Dupras 2012-01-12 14:23:10 -05:00
parent a699a2ef45
commit 45d4915d88
3 changed files with 6 additions and 3 deletions

View File

@ -14,7 +14,8 @@ http://www.hardcoded.net/licenses/bsd_license
{
self = [super initWithWindowNibName:@"DetailsPanel"];
[self window]; //So the detailsTable is initialized.
py = createPyWrapper(@"PyDetailsPanel", @"details_panel", @"DetailsPanelView", self);
py = [[PyDetailsPanel alloc] initWithModel:findHackishModel(@"details_panel")];
[py bindCallback:createCallback(@"DetailsPanelView", self)];
[py connect];
return self;
}

View File

@ -15,7 +15,8 @@ http://www.hardcoded.net/licenses/bsd_license
self = [super initWithWindowNibName:@"ExtraFairwareReminder"];
[self window];
[continueButton setEnabled:NO];
py = createPyWrapper(@"PyExtraFairwareReminder", @"extra_fairware_reminder", @"ExtraFairwareReminderView", self);
py = [[PyExtraFairwareReminder alloc] initWithModel:findHackishModel(@"extra_fairware_reminder")];
[py bindCallback:createCallback(@"ExtraFairwareReminderView", self)];
return self;
}

View File

@ -14,7 +14,8 @@ http://www.hardcoded.net/licenses/bsd_license
{
self = [self init];
view = [aLabelView retain];
py = createPyWrapper(@"PyStatsLabel", @"stats_label", @"StatsLabelView", self);
py = [[PyStatsLabel alloc] initWithModel:findHackishModel(@"stats_label")];
[py bindCallback:createCallback(@"StatsLabelView", self)];
[[self py] connect];
return self;
}