diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-09-08 17:45:23 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-09-08 17:45:23 +0000 |
commit | 29229aa01d4ef56f614636a7bf0a73403304d994 (patch) | |
tree | 1a452deedec4e2b0102d8fa5ed2d9462fd3f5a5d /AppKit/GTMUILocalizerAndLayoutTweaker.m | |
parent | db82cd9ae80c2428fc2cf93b46c21b6360b37f0b (diff) |
[Author: dmaclach]
Adds CGFloat support to NSNumber
R=thomasvl
DELTA=219 (217 added, 0 deleted, 2 changed)
Diffstat (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.m')
-rw-r--r-- | AppKit/GTMUILocalizerAndLayoutTweaker.m | 4 |
1 files changed, 3 insertions, 1 deletions
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]; } } |