mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
NSKVOSupport: Move ivar block to declaration
GCC does not support private ivar definitions in the implementation block.
This commit is contained in:
parent
dec6723bb4
commit
847ac08645
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue