mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Add set/get method for requiresSecureCoding
This commit is contained in:
parent
de0282fdac
commit
1a6a091fc4
2 changed files with 23 additions and 0 deletions
|
@ -70,6 +70,7 @@ extern "C" {
|
|||
NSMutableDictionary *_enc; /* Object being encoded. */
|
||||
NSMutableArray *_obj; /* Array of objects. */
|
||||
NSPropertyListFormat _format;
|
||||
BOOL _requiresSecureCoding;
|
||||
#endif
|
||||
#if GS_NONFRAGILE
|
||||
#else
|
||||
|
@ -121,6 +122,18 @@ extern "C" {
|
|||
*/
|
||||
+ (void) setClassName: (NSString*)aString forClass: (Class)aClass;
|
||||
|
||||
/**
|
||||
* Returns whether the current instance of the archiver needs secure
|
||||
* coding.
|
||||
*/
|
||||
- (BOOL) requiresSecureCoding;
|
||||
|
||||
/**
|
||||
* Sets whether the current instance of the archiver needs secure
|
||||
* coding.
|
||||
*/
|
||||
- (void) setRequiresSecureCoding: (BOOL)flag;
|
||||
|
||||
/**
|
||||
* Returns any mapping for the name of aClass which was previously set
|
||||
* for the receiver using the -setClassName:forClass: method.<br />
|
||||
|
|
|
@ -517,6 +517,16 @@ static NSDictionary *makeReference(unsigned ref)
|
|||
}
|
||||
}
|
||||
|
||||
- (BOOL) requiresSecureCoding
|
||||
{
|
||||
return _requiresSecureCoding;
|
||||
}
|
||||
|
||||
- (void) setRequiresSecureCoding: (BOOL)flag
|
||||
{
|
||||
_requiresSecureCoding = flag;
|
||||
}
|
||||
|
||||
- (BOOL) allowsKeyedCoding
|
||||
{
|
||||
return YES;
|
||||
|
|
Loading…
Reference in a new issue