From c0fc298082b6d2bbef4c60c49234d8a6b8168ac3 Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Fri, 15 May 2009 12:30:17 -0700 Subject: [PATCH] Update the new app template. --- Tools/capp/Templates/Application/AppController.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/capp/Templates/Application/AppController.j b/Tools/capp/Templates/Application/AppController.j index 21ede646e..a2f9912a9 100644 --- a/Tools/capp/Templates/Application/AppController.j +++ b/Tools/capp/Templates/Application/AppController.j @@ -26,7 +26,7 @@ [label sizeToFit]; [label setAutoresizingMask:CPViewMinXMargin | CPViewMaxXMargin | CPViewMinYMargin | CPViewMaxYMargin]; - [label setFrameOrigin:CGPointMake((CGRectGetWidth([contentView bounds]) - CGRectGetWidth([label frame])) / 2.0, (CGRectGetHeight([contentView bounds]) - CGRectGetHeight([label frame])) / 2.0)]; + [label setCenter:[contentView center]]; [contentView addSubview:label];