summaryrefslogtreecommitdiff
path: root/new/newcontrol_darwin.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-10 23:24:21 -0400
committerPietro Gagliardi <[email protected]>2015-04-10 23:24:21 -0400
commit4afca8f2c2f8a797263d54651366f9f1fbc2c09c (patch)
tree7fa3f8f4acc187112be17ebcd76ec70328820aa4 /new/newcontrol_darwin.m
parentc610c60ea6266fe68c2f06627c0bdbedaa5731bb (diff)
More of the previous commit. More TODOs.
Diffstat (limited to 'new/newcontrol_darwin.m')
-rw-r--r--new/newcontrol_darwin.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/new/newcontrol_darwin.m b/new/newcontrol_darwin.m
index 1fff8a8..5f70075 100644
--- a/new/newcontrol_darwin.m
+++ b/new/newcontrol_darwin.m
@@ -14,7 +14,7 @@ static void singleDestroy(uiControl *c)
{
singleView *s = (singleView *) (c->internal);
- [deletedControlsView addSubview:s->immediate];
+ [destroyedControlsView addSubview:s->immediate];
}
static uintptr_t singleHandle(uiControl *c)
@@ -117,7 +117,7 @@ BOOL uiDarwinControlFreeWhenAppropriate(uiControl *c, NSView *newSuperview)
{
singleView *s = (singleView *) (c->internal);
- if (newSuperview == deletedControlsView) {
+ if (newSuperview == destroyedControlsView) {
[s->immediate release]; // we don't need the reference anymore
uiFree(s);
uiFree(c);