Skip to content

Commit

Permalink
Implement -[NSUserDefaults {add,remove}SuiteNamed:]
Browse files Browse the repository at this point in the history
  • Loading branch information
bugaevc committed Mar 17, 2019
1 parent 250114e commit 5c8f098
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/NSUserDefaults.m
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,15 @@ - (void) removePersistentDomainForName: (NSString *) domainName
}
[self synchronize];
}

- (void) addSuiteNamed: (NSString *) suiteName {
CFPreferencesAddSuitePreferencesToApp(kCFPreferencesCurrentApplication, (CFStringRef) suiteName);
}

- (void) removeSuiteNamed: (NSString *) suiteName {
CFPreferencesRemoveSuitePreferencesFromApp(kCFPreferencesCurrentApplication, (CFStringRef) suiteName);
}

@end


Expand Down

0 comments on commit 5c8f098

Please sign in to comment.