diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-08-28 17:15:28 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-08-28 17:15:28 +0000 |
commit | 688c8010fe873634d2a1d4ec964924f2de2a02cc (patch) | |
tree | 8c4b2f7729c28a31085d0629cf8c2e6d10d891cc /AppKit/GTMUILocalizerAndLayoutTweaker.m | |
parent | d300ff3f52ba4b56f8e71aaa4b41dd03d58a5ca6 (diff) |
[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)
Diffstat (limited to 'AppKit/GTMUILocalizerAndLayoutTweaker.m')
-rw-r--r-- | AppKit/GTMUILocalizerAndLayoutTweaker.m | 9 |
1 files changed, 7 insertions, 2 deletions
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]; } |