mirror of
https://github.com/darlinghq/darling-corefoundation.git
synced 2024-11-26 21:30:22 +00:00
Stub/implement CFPreferencesAppValueIsForced
and [NSError _setFileNameLocalizationEnabled:]
This commit is contained in:
parent
5906c1c491
commit
54d606dd9a
@ -394,6 +394,13 @@ CFArrayRef CFPreferencesCopyKeyList(CFStringRef appName, CFStringRef user, CF
|
||||
}
|
||||
}
|
||||
|
||||
Boolean CFPreferencesAppValueIsForced(CFStringRef key, CFStringRef applicationID) {
|
||||
// kind of a stub but not really
|
||||
// Darling doesn't have "forced" preferences
|
||||
// (those would be preferences enforced by an administrator)
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
/****************************/
|
||||
/* CFPreferencesDomain */
|
||||
|
10
NSError.m
10
NSError.m
@ -6,6 +6,7 @@
|
||||
//
|
||||
|
||||
#import <Foundation/NSError.h>
|
||||
#import <Foundation/NSError_Private.h>
|
||||
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import "ForFoundationOnly.h"
|
||||
@ -159,6 +160,15 @@ static NSError *_outOfmemoryError = nil;
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSError (NSErrorPrivateStuff)
|
||||
|
||||
+ (void)_setFileNameLocalizationEnabled:(BOOL)enabled
|
||||
{
|
||||
// silently ignore it
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation __NSCFError
|
||||
|
||||
+ (BOOL)automaticallyNotifiesObserversForKey:(NSString *)key
|
||||
|
@ -138,6 +138,8 @@ all arguments must be non-NULL */
|
||||
CF_EXPORT
|
||||
CFArrayRef CFPreferencesCopyKeyList(CFStringRef applicationID, CFStringRef userName, CFStringRef hostName);
|
||||
|
||||
CF_EXPORT
|
||||
Boolean CFPreferencesAppValueIsForced(CFStringRef key, CFStringRef applicationID);
|
||||
|
||||
CF_EXTERN_C_END
|
||||
CF_IMPLICIT_BRIDGING_DISABLED
|
||||
|
Loading…
Reference in New Issue
Block a user