From 29229aa01d4ef56f614636a7bf0a73403304d994 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Tue, 8 Sep 2009 17:45:23 +0000 Subject: [Author: dmaclach] Adds CGFloat support to NSNumber R=thomasvl DELTA=219 (217 added, 0 deleted, 2 changed) --- AppKit/GTMUILocalizerAndLayoutTweaker.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.m') diff --git a/AppKit/GTMUILocalizerAndLayoutTweaker.m b/AppKit/GTMUILocalizerAndLayoutTweaker.m index 91c6ffc..cae8a02 100644 --- a/AppKit/GTMUILocalizerAndLayoutTweaker.m +++ b/AppKit/GTMUILocalizerAndLayoutTweaker.m @@ -18,6 +18,7 @@ #import "GTMUILocalizerAndLayoutTweaker.h" #import "GTMUILocalizer.h" +#import "GTMNSNumber+64Bit.h" // Helper that will try to do a SizeToFit on any UI items and do the special // case handling we also need to end up with a usable UI item. It also takes @@ -160,7 +161,8 @@ static BOOL IsRightAnchored(NSView *view); // once we know this view's size. if (IsRightAnchored(subView)) { [rightAlignedSubViews addObject:subView]; - [rightAlignedSubViewDeltas addObject:[NSNumber numberWithDouble:delta]]; + NSNumber *nsDelta = [NSNumber gtm_numberWithCGFloat:delta]; + [rightAlignedSubViewDeltas addObject:nsDelta]; } } -- cgit v1.2.3