PSPDFModelEncodingBehavior
Objective-C
enum PSPDFModelEncodingBehavior {}
Swift
@frozen enum EncodingBehavior : UInt
Defines how a PSPDFModel property key should be encoded into an archive.
-
The property should never be encoded. Will also not be read when decoding because it wouldn’t be there except for old archives, and those migrations should be handled separately.
Declaration
Objective-C
PSPDFModelEncodingBehaviorExcluded = 0Swift
case excluded = 0 -
The property should always be encoded.
Declaration
Objective-C
PSPDFModelEncodingBehaviorUnconditionalSwift
case unconditional = 1 -
The object should be encoded only if unconditionally encoded elsewhere.
Declaration
Objective-C
PSPDFModelEncodingBehaviorConditionalSwift
case conditional = 2 -
The object should be encoded as pointer value and is post-processed manually.
Declaration
Objective-C
PSPDFModelEncodingBehaviorPointerValueSwift
case pointerValue = 3