mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-26 21:40:44 +00:00
More stubs for Xcode
This commit is contained in:
parent
479dd38a77
commit
c9b4a96280
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
11
CoreData/NSMergePolicy.m
Normal 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;
|
@ -47,6 +47,8 @@ NSString *const NSInferMappingModelAutomaticallyOption =
|
||||
@"NSInferMappingModelAutomaticallyOption";
|
||||
NSString *const NSReadOnlyPersistentStoreOption =
|
||||
@"NSReadOnlyPersistentStoreOption";
|
||||
NSString *const NSStoreModelVersionHashesKey =
|
||||
@"NSStoreModelVersionHashesKey";
|
||||
|
||||
@implementation NSPersistentStoreCoordinator
|
||||
|
||||
|
11
CoreData/include/CoreData/NSMergePolicy.h
Normal file
11
CoreData/include/CoreData/NSMergePolicy.h
Normal 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;
|
Loading…
Reference in New Issue
Block a user