File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,18 @@ CF_EXTERN_C_END
65
65
66
66
/* *
67
67
* Base class that each generated message subclasses from.
68
+ *
69
+ * @note While the class support NSSecureCoding, if the message has any
70
+ * extensions, they will end up reloaded in @c unknownFields as there is
71
+ * no way for the @c NSCoding plumbing to pass through a
72
+ * @c GPBExtensionRegistry. To support extensions, instead of passing the
73
+ * calls off to the Message, simple store the result of @c data, and then
74
+ * when loading, fetch the data and use
75
+ * @c +parseFromData:extensionRegistry:error: to provide an extension
76
+ * registry.
68
77
**/
69
78
@interface GPBMessage : NSObject <NSSecureCoding , NSCopying >
70
-
79
+
71
80
// If you add an instance method/property to this class that may conflict with
72
81
// fields declared in protos, you need to update objective_helpers.cc. The main
73
82
// cases are methods that take no arguments, or setFoo:/hasFoo: type methods.
You can’t perform that action at this time.
0 commit comments