From aa03a7f4e29da1311843703eabee4432cd1e4e12 Mon Sep 17 00:00:00 2001 From: Hugo Melder Date: Tue, 17 Dec 2024 14:53:35 +0100 Subject: [PATCH] NSKVOSupport: remove objc2 features from tests --- Tests/base/NSKVOSupport/proxy.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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");