aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMUILocalizerAndLayoutTweaker.h
diff options
context:
space:
mode:
Diffstat (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.h')
-rw-r--r--AppKit/GTMUILocalizerAndLayoutTweaker.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/AppKit/GTMUILocalizerAndLayoutTweaker.h b/AppKit/GTMUILocalizerAndLayoutTweaker.h
index 2244cfe..0ef0763 100644
--- a/AppKit/GTMUILocalizerAndLayoutTweaker.h
+++ b/AppKit/GTMUILocalizerAndLayoutTweaker.h
@@ -31,9 +31,15 @@
IBOutlet GTMUILocalizer *localizer_; // If nil, one will be created
IBOutlet id localizerOwner_; // Set if you want the default GTMUILocalizer
}
+// Localize the the UI and then tweak the layout in the given object.
- (void)applyLocalizer:(GTMUILocalizer *)localizer
tweakingUI:(id)uiObject;
+// Don't do any localization, just runs the tweaks, useful if you just need
+// layout adjusted based on content from elsewhere. |uiObject| should be
+// a NSWindow or NSView (or subclass).
+- (void)tweakUI:(id)uiObject;
+
// This checks to see if |view| implements @selector(sizeToFit) and calls it.
// It then checks the class of |view| and does some fixup for known issues
// where sizeToFit doesn't product a view that meets UI guidelines.