From 688c8010fe873634d2a1d4ec964924f2de2a02cc Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Fri, 28 Aug 2009 17:15:28 +0000 Subject: [Author: thomasvl] Comment on one of the public UI points. Put in another public UI point for tweaking UI without doing the localization step (for non localization content tweaking). R=stuartmorgan DELTA=12 (11 added, 0 deleted, 1 changed) --- AppKit/GTMUILocalizerAndLayoutTweaker.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.h') 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. -- cgit v1.2.3