aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMUILocalizerAndLayoutTweaker.m
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-11-05 17:30:48 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-11-05 17:30:48 +0000
commit1206dc74b7f08a50f12ac686b03c1ad5088d4de9 (patch)
tree519db14aaf13bb522e2ee0be80655565b05f3391 /AppKit/GTMUILocalizerAndLayoutTweaker.m
parent31b2dc28acf86e12071dba9628856ade5b892312 (diff)
[Author: thomasvl]
Path control is 10.5 or later, add ifdef. R=dmaclach,stuartmorgan DELTA=2 (2 added, 0 deleted, 0 changed)
Diffstat (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.m')
-rw-r--r--AppKit/GTMUILocalizerAndLayoutTweaker.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/AppKit/GTMUILocalizerAndLayoutTweaker.m b/AppKit/GTMUILocalizerAndLayoutTweaker.m
index d48e635..a2f94ab 100644
--- a/AppKit/GTMUILocalizerAndLayoutTweaker.m
+++ b/AppKit/GTMUILocalizerAndLayoutTweaker.m
@@ -458,10 +458,12 @@ static NSSize SizeToFit(NSView *view, NSPoint offset) {
// Don't try to sizeToFit because edit fields really don't want to be sized
// to what is in them as they are for users to enter things so honor their
// current size.
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
} else if ([view isKindOfClass:[NSPathControl class]]) {
// Don't try to sizeToFit because NSPathControls usually need to be able
// to display any path, so they shouldn't tight down to whatever they
// happen to be listing at the moment.
+#endif // MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
} else {
// Genericaly fire a sizeToFit if it has one.
if ([view respondsToSelector:@selector(sizeToFit)]) {