diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-01-21 17:00:21 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-01-21 17:00:21 +0000 |
commit | bd829ad75159a3cfe3ba81bee61fa725909f2ad4 (patch) | |
tree | 9d591db75edebf3180207adf2168a8c8ff56396c /AppKit/GTMUILocalizer.h | |
parent | 53974a084bc914ea8666918b43803574515c9aef (diff) |
[Author: dmaclach]
Clean up GTMUILocalizer so that it has a single entry point. Bindings weren't
always being updated recursively.
R=thomasvl
DELTA=95 (45 added, 38 deleted, 12 changed)
Diffstat (limited to 'AppKit/GTMUILocalizer.h')
-rw-r--r-- | AppKit/GTMUILocalizer.h | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/AppKit/GTMUILocalizer.h b/AppKit/GTMUILocalizer.h index c07d7a1..81f9dca 100644 --- a/AppKit/GTMUILocalizer.h +++ b/AppKit/GTMUILocalizer.h @@ -64,6 +64,12 @@ // will localize properly. This keeps the differences between the nibs down // to the bare essentials. // +// NOTE: NSToolbar localization support is limited to only working on the +// default items in the toolbar. We cannot localize items that are on of the +// customization palette but not in the default items because there is not an +// API for NSToolbar to get all possible items. You are responsible for +// localizing all non-default toolbar items by hand. +// @interface GTMUILocalizer : NSObject { @private IBOutlet id owner_; @@ -72,23 +78,10 @@ NSBundle *bundle_; } - (id)initWithBundle:(NSBundle *)bundle; -- (void)localizeObject:(id)object recursively:(BOOL)recursive; -- (void)localizeWindow:(NSWindow *)window recursively:(BOOL)recursive; -- (void)localizeView:(NSView *)view recursively:(BOOL)recursive; -- (void)localizeMenu:(NSMenu *)menu recursively:(BOOL)recursive; -- (void)localizeCell:(NSCell *)cell recursively:(BOOL)recursive; -- (void)localizeBindings:(id)object; -// NOTE: NSToolbar localization support is limited to only working on the -// default items in the toolbar. We cannot localize items that are on of the -// customization palette but not in the default items because there is not an -// API for NSToolbar to get all possible items. You are responsible for -// localizing all non-default toolbar items by hand. -- (void)localizeToolbar:(NSToolbar *)toolbar; - -// Localize an object for accessibility; can be called for both NSViews and -// NSCells as they are both accessibility objects. -- (void)localizeAccessibility:(id)object; +// Localize |object|. If |recursive| is true, it will attempt +// to localize objects owned/referenced by |object|. +- (void)localizeObject:(id)object recursively:(BOOL)recursive; // A method for subclasses to override in case you have a different // way to go about getting localized strings. |