aboutsummaryrefslogtreecommitdiff
path: root/AppKit
diff options
context:
space:
mode:
authorGravatar dmaclach <dmaclach@gmail.com>2018-11-13 11:15:17 -0800
committerGravatar GitHub <noreply@github.com>2018-11-13 11:15:17 -0800
commit97545f2bb15572e87b982246cd747c96ec39dbf2 (patch)
tree04255f348e39c8cbe3cefb1e52c24dab9653fa57 /AppKit
parent5023c1cabeecfae4d3124f043b1543ecac7e4d4f (diff)
Remove old uses of GTM_FOREACH_KEY (#194)
Diffstat (limited to 'AppKit')
-rw-r--r--AppKit/GTMUILocalizerTest.m2
-rw-r--r--AppKit/GTMWindowSheetController.m4
2 files changed, 3 insertions, 3 deletions
diff --git a/AppKit/GTMUILocalizerTest.m b/AppKit/GTMUILocalizerTest.m
index 451bd83..b12d977 100644
--- a/AppKit/GTMUILocalizerTest.m
+++ b/AppKit/GTMUILocalizerTest.m
@@ -36,7 +36,7 @@
NSDictionary *bindingOptions = [bindingInfo objectForKey:NSOptionsKey];
XCTAssertNotNil(bindingOptions);
NSString *key = nil;
- GTM_FOREACH_KEY(key, bindingOptions) {
+ for(key in bindingOptions) {
id value = [bindingOptions objectForKey:key];
if ([value isKindOfClass:[NSString class]]) {
XCTAssertFalse([value hasPrefix:@"^"],
diff --git a/AppKit/GTMWindowSheetController.m b/AppKit/GTMWindowSheetController.m
index 8e2d13c..37077a1 100644
--- a/AppKit/GTMWindowSheetController.m
+++ b/AppKit/GTMWindowSheetController.m
@@ -186,7 +186,7 @@ willPositionSheet:(NSWindow*)sheet
- (NSArray*)viewsWithAttachedSheets {
NSMutableArray* views = [NSMutableArray array];
NSValue* key;
- GTM_FOREACH_KEY(key, sheets_) {
+ for (key in sheets_) {
[views addObject:[key nonretainedObjectValue]];
}
@@ -570,7 +570,7 @@ willPositionSheet:(NSWindow*)sheet
- (void)systemRequestsVisibilityForWindow:(NSWindow*)window {
NSValue* key;
- GTM_FOREACH_KEY(key, sheets_) {
+ for (key in sheets_) {
GTMWSCSheetInfo* sheetInfo = [sheets_ objectForKey:key];
if (sheetInfo->overlayWindow_ == window) {
NSView* view = [key nonretainedObjectValue];