| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
| |
This change makes GTMLocalizer use NSAccessibility when building for 10.10+
deployment targets.
I tested this change by:
1) Hacking the GTM Xcode project to build with a 10.10 deployment target, and
ignoring the other deprecated API uses;
2) Patching this GTM into the chromium tree (which does target 10.10) and
ensuring that it still builds
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove a bunch of code that Google stopped using/maintaining rather than trying
to update it it. Some would be hard to update, some actually has system provided
replacements; others are patterns that just don't seem as common now.
Prune out the code related to macOS <= 10.5, start pruning some of the really
old iOS support also.
Get the projects mostly limping again with modern Xcodes so tests can be run.
If someone ends up on this commit via history for something they still find
as useful, feel free to do a pull request to bring the snippet of code back to
life and update it for current SDKs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix memory model by making all the outlets assign not retain.
The problem here is UIViewControllers will dump their view in low memory
and then reload next time it is needed. So someone hangs on to the
localizer for something else, it would keep the views also loaded, so this
way the localizer won't keep any of the objects it points to alive via a
retain. Note: the AppKit version sorta matches this since outlets aren't
retained by default.
Clear them in awakeFromNib since that is all they are needed for.
R=dmaclach
DELTA=19 (9 added, 0 deleted, 10 changed)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Support for localizing non datasource versions of NSComboxBox (http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=77).
- Fix up some category names.
- Avoid conflicting category names.
- Move placeholder string support down to NSTextField instead of NSSearchField.
- Support for NSTextField placeholder in unittesting state.
- Support for non datasource combobox values in unittesting state.
- Fix NSSegmentControl localization support.
- Add explicit tests for no localized values and document it in the strings file.
- Unittesting for as much as possible of the above.
R=dmaclach
DELTA=762 (660 added, 55 deleted, 47 changed)
|
|
|
|
|
|
|
|
| |
Add support for NSSegmentedControl to GTMUILocalizer.
This fixes http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=53.
R=dmaclach
APPROVED=dmaclach
DELTA=142 (137 added, 1 deleted, 4 changed)
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix for http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=40.
Sets up GTMUILocalizer to localize some bindings. Handles:
NSMultipleValuesPlaceholderBindingOption
NSNoSelectionPlaceholderBindingOption
NSNotApplicablePlaceholderBindingOption
NSNullPlaceholderBindingOption
NSDisplayNameBindingOption,
NSDisplayPatternBindingOption,
R=thomasvl
DELTA=1475 (815 added, 596 deleted, 64 changed)
|
|
|
|
|
|
| |
Since we can't localize the AXDescription on elements, we shouldn't even try.
R=dmaclach,thomasvl
DELTA=55 (28 added, 20 deleted, 7 changed)
|
|
|
|
|
|
|
|
|
|
| |
Support the toolbar item's view in state logging.
Add table columns to ui localizer (tests will come in a following cl).
Add a toolbar item that doesn't localize to help catch bugs in the future like we had on first impl.
Add a tooltip to the toolbar item in the unittest for ui localizer.
Add a note about the limits to ui localizer and toolbars due to the NSToolbar api's limits.
R=dmaclach
DELTA=746 (90 added, 599 deleted, 57 changed)
|
|
|
|
|
|
| |
Get rid of ObjC 2ism for compiling on Tiger.
R=thomasvl,alcor
DELTA=2 (1 added, 0 deleted, 1 changed)
|
|
|
|
|
|
| |
Fix toolbar localizer test
R=thomasvl
DELTA=2780 (2767 added, 6 deleted, 7 changed)
|
|
|
|
|
|
|
|
| |
Update Large UI with latest nib
Add toolbar to prefs
Add toolbar localization
R=dmaclach
DELTA=4125 (3054 added, 462 deleted, 609 changed)
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the nib finding code in GTMUILocalizer to a class methods so it can
be called without an instance.
Add GTMUILocalizerAndLayoutTweaker getting UI localized and then running
through it to auto size UI items that have been marked and also support
limited tweaks on other objects based on a group of tweaks.
Provide a class method for this sizeToFit fixup of individual objects.
Unittests for the new class.
R=dmaclach,stuartmorgan
DELTA=3161 (3157 added, 0 deleted, 4 changed)
|
|
|
|
|
|
| |
Use CPP gates instead of runtime checks for NSViewController.
R=dmaclach
DELTA=18 (5 added, 5 deleted, 8 changed)
|
|
|
|
|
|
|
|
| |
Support for NSMatrix in uistate files (dumps the cells and row/column counts).
Support for NSMatrix in GTMUILocalizer.
Added checkboxes and radio groups to the GTMUILocalizer unittest.
R=dmaclach
DELTA=551 (541 added, 0 deleted, 10 changed)
|
|
|
|
|
|
| |
Make the placeholder text for the prefs windows "Searchable Items" search field localizable
DELTA=13 (12 added, 0 deleted, 1 changed)
R=dmaclach
|
|
|
|
|
|
|
| |
Fixed up GTMUILocalizer to work properly with popup menus and alternate titles.
Fixed up UnitTesting code to check for it.
R=thomasvl
DELTA=3175 (3151 added, 14 deleted, 10 changed)
|
|
Added GTMUILocalizer for localizing UIs. 100% code coverage from tests.
DELTA=1956 (1940 added, 8 deleted, 8 changed)
R=thomasvl
|