diff --git a/Tests/base/NSKVOSupport/proxy.m b/Tests/base/NSKVOSupport/proxy.m index 5db41b6ce..3aa1a3b82 100644 --- a/Tests/base/NSKVOSupport/proxy.m +++ b/Tests/base/NSKVOSupport/proxy.m @@ -197,16 +197,16 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N count += 1; switch (count) { case 1: - PASS_EQUAL(keyPath, keys[0], "change notification for dependent key 'derivedName' is emitted first"); + PASS_EQUAL(keyPath, [keys objectAtIndex: 0], "change notification for dependent key 'derivedName' is emitted first"); break; case 2: - PASS_EQUAL(keyPath, keys[1], "'name' change notification for proxy is second"); + PASS_EQUAL(keyPath, [keys objectAtIndex: 1], "'name' change notification for proxy is second"); break; case 3: - PASS_EQUAL(keyPath, keys[0], "'derivedName' change notification for object is third"); + PASS_EQUAL(keyPath, [keys objectAtIndex: 0], "'derivedName' change notification for object is third"); break; case 4: - PASS_EQUAL(keyPath, keys[1], "'name' change notification for object is fourth"); + PASS_EQUAL(keyPath, [keys objectAtIndex: 1], "'name' change notification for object is fourth"); break; default: PASS(0, "unexpected -[Observer observeValueForKeyPath:ofObject:change:context:] callback");