diff options
-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; |