diff options
author | 2009-08-26 19:00:50 +0000 | |
---|---|---|
committer | 2009-08-26 19:00:50 +0000 | |
commit | 66fc63df47cd6714ca8ff034ae3f54de5ef58ea9 (patch) | |
tree | 32a75c26828f5ce26826b2e888c3108e0b5c10b4 | |
parent | 7f764065e4d7a0801ecf13741054c6e7fa1e71eb (diff) |
[Author: thomasvl]
Not sure what I was thinking, sizes are CGFloats and it couldn't be unsigned
since the height to grow or shrink...
R=stuartmorgan
DELTA=2 (0 added, 0 deleted, 2 changed)
-rw-r--r-- | AppKit/GTMUILocalizerAndLayoutTweaker.h | 2 | ||||
-rw-r--r-- | AppKit/GTMUILocalizerAndLayoutTweaker.m | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/AppKit/GTMUILocalizerAndLayoutTweaker.h b/AppKit/GTMUILocalizerAndLayoutTweaker.h index 6562243..2244cfe 100644 --- a/AppKit/GTMUILocalizerAndLayoutTweaker.h +++ b/AppKit/GTMUILocalizerAndLayoutTweaker.h @@ -44,7 +44,7 @@ // can get really wide. This method will keep the width fixed, but figure out // how tall the textfield needs to be to fit its text. // Returns the amount the field changed height. -+ (NSUInteger)sizeToFitFixedWidthTextField:(NSTextField *)textField; ++ (CGFloat)sizeToFitFixedWidthTextField:(NSTextField *)textField; @end diff --git a/AppKit/GTMUILocalizerAndLayoutTweaker.m b/AppKit/GTMUILocalizerAndLayoutTweaker.m index 525b424..d7494b2 100644 --- a/AppKit/GTMUILocalizerAndLayoutTweaker.m +++ b/AppKit/GTMUILocalizerAndLayoutTweaker.m @@ -90,7 +90,7 @@ static BOOL IsRightAnchored(NSView *view); return SizeToFit(view, NSZeroPoint); } -+ (NSUInteger)sizeToFitFixedWidthTextField:(NSTextField *)textField { ++ (CGFloat)sizeToFitFixedWidthTextField:(NSTextField *)textField { NSRect initialFrame = [textField frame]; NSSize newSize = [[textField cell] cellSizeForBounds:initialFrame]; NSRect newFrame = initialFrame; |