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.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.m') diff --git a/AppKit/GTMUILocalizerAndLayoutTweaker.m b/AppKit/GTMUILocalizerAndLayoutTweaker.m index 1b5d8aa..b8c6499 100644 --- a/AppKit/GTMUILocalizerAndLayoutTweaker.m +++ b/AppKit/GTMUILocalizerAndLayoutTweaker.m @@ -59,6 +59,11 @@ static BOOL IsRightAnchored(NSView *view); // Localize first [localizer localizeObject:uiObject recursively:YES]; + // Then tweak! + [self tweakUI:uiObject]; +} + +- (void)tweakUI:(id)uiObject { // Figure out where we start NSView *startView; if ([uiObject isKindOfClass:[NSWindow class]]) { @@ -68,8 +73,8 @@ static BOOL IsRightAnchored(NSView *view); @"should have been a subclass of NSView"); startView = (NSView *)uiObject; } - - // And Tweak! + + // Tweak away! [self tweakView:startView]; } -- cgit v1.2.3