@@ -141,7 +141,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
141141/* !
142142 @abstract Sets the object associated with a given key.
143143
144- @param object The object for `key`. A strong reference to the object is maintaned by PFObject.
144+ @param object The object for `key`. A strong reference to the object is maintained by PFObject.
145145 Raises an `NSInvalidArgumentException` if `object` is `nil`.
146146 If you need to represent a `nil` value - use `NSNull`.
147147 @param key The key for `object`.
@@ -176,7 +176,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
176176 @discussion This method enables usage of literal syntax on `PFObject`.
177177 E.g. `object[@"key"] = @"value";`
178178
179- @param object The object for `key`. A strong reference to the object is maintaned by PFObject.
179+ @param object The object for `key`. A strong reference to the object is maintained by PFObject.
180180 Raises an `NSInvalidArgumentException` if `object` is `nil`.
181181 If you need to represent a `nil` value - use `NSNull`.
182182 @param key The key for `object`.
@@ -202,6 +202,19 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
202202 */
203203- (PFRelation *)relationforKey : (NSString *)key PARSE_DEPRECATED(" Please use -relationForKey: instead." );
204204
205+ /* !
206+ @abstract Clears any changes to this object made since the last call to save and sets it back to the server state.
207+ */
208+ - (void )revert ;
209+
210+ /* !
211+ @abstract Clears any changes to this object's key that were done after last successful save and sets it back to the
212+ server state.
213+
214+ @param key The key to revert changes for.
215+ */
216+ - (void )revertObjectForKey : (NSString *)key ;
217+
205218// /--------------------------------------
206219// / @name Array Accessors
207220// /--------------------------------------
0 commit comments