NSKVOSupport: Move ivar block to declaration

GCC does not support private ivar definitions in the implementation
block.
This commit is contained in:
Hugo Melder 2024-12-02 17:16:38 +01:00
parent dec6723bb4
commit 847ac08645

View file

@ -11,6 +11,11 @@
#import "Testing.h"
/**
* The new KVO implementation for libobjc2/clang, located in Source/NSKVO*, reuses
* or installs a hidden class and subsequently adds the swizzled method to the
* hidden class. Make sure that the invocation mechanism calls the swizzled method.
*/
@interface Observee : NSObject
{
@ -92,15 +97,15 @@
@end
@interface Observer: NSObject
{
int count;
}
- (void)runTest;
@end
@implementation Observer
{
int count;
}
- (void)runTest
{