More stubs for Xcode

This commit is contained in:
Ariel Abreu 2021-03-04 22:00:28 -05:00
parent 479dd38a77
commit c9b4a96280
No known key found for this signature in database
GPG Key ID: BB20848279B910AC
6 changed files with 42 additions and 0 deletions

View File

@ -70,3 +70,13 @@ NSString *const NSConditionallySetsEditableBindingOption =
NSString *const NSContinuouslyUpdatesValueBindingOption =
@"NSContinuouslyUpdatesValue";
NSString *const NSDisplayPatternBindingOption = @"NSDisplayPattern";
// TODO: actually implement this stuff
@implementation NSObject (NSKeyValueBindingCreation)
- (NSArray<NSString *> *) exposedBindings
{
return @[];
}
@end

View File

@ -19,6 +19,7 @@
#import <AppKit/AppKitExport.h>
#import <Foundation/NSString.h>
#import <Foundation/NSArray.h>
APPKIT_EXPORT NSString *const NSObservedObjectKey;
APPKIT_EXPORT NSString *const NSObservedKeyPathKey;
@ -62,3 +63,9 @@ APPKIT_EXPORT NSString *const NSConditionallySetsEnabledBindingOption;
APPKIT_EXPORT NSString *const NSConditionallySetsEditableBindingOption;
APPKIT_EXPORT NSString *const NSContinuouslyUpdatesValueBindingOption;
APPKIT_EXPORT NSString *const NSDisplayPatternBindingOption;
@interface NSObject (NSKeyValueBindingCreation)
@property(readonly, copy) NSArray<NSString *> *exposedBindings;
@end

View File

@ -42,6 +42,7 @@ set(CoreData_sources
NSRelationshipDescription.m
NSXMLPersistentStore.m
NSMergeConflict.m
NSMergePolicy.m
)
set_source_files_properties(${CoreData_sources} LANGUAGE C)

11
CoreData/NSMergePolicy.m Normal file
View File

@ -0,0 +1,11 @@
#import <CoreData/NSMergePolicy.h>
@implementation NSMergePolicy
@end
id NSErrorMergePolicy = nil;
id NSMergeByPropertyStoreTrumpMergePolicy = nil;
id NSMergeByPropertyObjectTrumpMergePolicy = nil;
id NSOverwriteMergePolicy = nil;
id NSRollbackMergePolicy = nil;

View File

@ -47,6 +47,8 @@ NSString *const NSInferMappingModelAutomaticallyOption =
@"NSInferMappingModelAutomaticallyOption";
NSString *const NSReadOnlyPersistentStoreOption =
@"NSReadOnlyPersistentStoreOption";
NSString *const NSStoreModelVersionHashesKey =
@"NSStoreModelVersionHashesKey";
@implementation NSPersistentStoreCoordinator

View File

@ -0,0 +1,11 @@
#import <Foundation/NSObject.h>
@interface NSMergePolicy : NSObject
@end
extern id NSErrorMergePolicy;
extern id NSMergeByPropertyStoreTrumpMergePolicy;
extern id NSMergeByPropertyObjectTrumpMergePolicy;
extern id NSOverwriteMergePolicy;
extern id NSRollbackMergePolicy;