diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-10 03:11:20 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-10 03:11:44 -0400 |
| commit | 948416d04d7de1fed917b7d6dfebab4c7fd978a2 (patch) | |
| tree | 49685b922af4b6dad11f61e17f171e2e5bf2edd3 /new/container_darwin.m | |
| parent | 64b746c9a11ad644c0482824c59bd5542e5697b3 (diff) | |
Resolved some TODOs (including one resolved a while ago on IRC but not removed until now; thanks various people in irc.freenode.net/#macdev).
Diffstat (limited to 'new/container_darwin.m')
| -rw-r--r-- | new/container_darwin.m | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
