Merge pull request #2309 from thomasvl/note_about_coding_support

Add note about extension use and Coding support.
pull/2318/head
Thomas Van Lenten 9 years ago committed by GitHub
commit ea928a1811
  1. 9
      objectivec/GPBMessage.h

@ -65,6 +65,15 @@ CF_EXTERN_C_END
/**
* Base class that each generated message subclasses from.
*
* @note While the class support NSSecureCoding, if the message has any
* extensions, they will end up reloaded in @c unknownFields as there is
* no way for the @c NSCoding plumbing to pass through a
* @c GPBExtensionRegistry. To support extensions, instead of passing the
* calls off to the Message, simple store the result of @c data, and then
* when loading, fetch the data and use
* @c +parseFromData:extensionRegistry:error: to provide an extension
* registry.
**/
@interface GPBMessage : NSObject<NSSecureCoding, NSCopying>

Loading…
Cancel
Save