From 948416d04d7de1fed917b7d6dfebab4c7fd978a2 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 10 Apr 2015 03:11:20 -0400 Subject: Resolved some TODOs (including one resolved a while ago on IRC but not removed until now; thanks various people in irc.freenode.net/#macdev). --- new/container_darwin.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'new/container_darwin.m') diff --git a/new/container_darwin.m b/new/container_darwin.m index 8b2899c..c3fd938 100644 --- a/new/container_darwin.m +++ b/new/container_darwin.m @@ -17,9 +17,9 @@ uiLogObjCClassAllocations - (void)viewDidMoveToSuperview { if ([self superview] == nil) - if (self.child != NULL) { - uiControlDestroy(self.child); - self.child = NULL; + if (self.uiChild != NULL) { + uiControlDestroy(self.uiChild); + self.uiChild = NULL; } [super viewDidMoveToSuperview]; } @@ -42,7 +42,7 @@ uiLogObjCClassAllocations uiSizing d; intmax_t x, y, width, height; - if (self.child == NULL) + if (self.uiChild == NULL) return; x = [self bounds].origin.x; y = [self bounds].origin.y; @@ -56,7 +56,7 @@ uiLogObjCClassAllocations } d.xPadding = macXPadding; d.yPadding = macYPadding; - uiControlResize(self.child, x, y, width, height, &d); + uiControlResize(self.uiChild, x, y, width, height, &d); } - (BOOL)uiMargined -- cgit v1.2.3