Skip to content

Commit dd05d41

Browse files
authored
feat: Add PFObject.isDataAvailableForKey to check if data is available for individual key (#1756)
1 parent b9239d7 commit dd05d41

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Parse/Parse/Internal/Object/PFObjectPrivate.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@
202202
- (void)setHasBeenFetched:(BOOL)fetched;
203203
- (void)_setDeleted:(BOOL)deleted;
204204

205-
- (BOOL)isDataAvailableForKey:(NSString *)key;
206-
207205
- (BOOL)_hasChanges;
208206
- (BOOL)_hasOutstandingOperations;
209207
- (PFOperationSet *)unsavedChanges;

Parse/Parse/Source/PFObject.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,13 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
399399
*/
400400
@property (nonatomic, assign, readonly, getter=isDataAvailable) BOOL dataAvailable;
401401

402+
/**
403+
Checks whether the `PFObject` has data for given key
404+
405+
@return `YES` if data is available for given key
406+
*/
407+
- (BOOL)isDataAvailableForKey:(NSString *)key;
408+
402409
#if TARGET_OS_IOS
403410

404411
/**

0 commit comments

Comments
 (0)