@@ -184,7 +184,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
184
184
185
185
@see setObject:forKey:
186
186
*/
187
- - (void )setObject : (PF_NULLABLE_S id )object forKeyedSubscript : (NSString *)key ;
187
+ - (void )setObject : (id )object forKeyedSubscript : (NSString *)key ;
188
188
189
189
/* !
190
190
@abstract Returns the relation object associated with the given key.
@@ -504,7 +504,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
504
504
505
505
@deprecated Please use `-fetch` instead.
506
506
*/
507
- - (instancetype )refresh PF_SWIFT_UNAVAILABLE PARSE_DEPRECATED(" Please use `-fetch` instead." );
507
+ - (PF_NULLABLE instancetype )refresh PF_SWIFT_UNAVAILABLE PARSE_DEPRECATED(" Please use `-fetch` instead." );
508
508
509
509
/* !
510
510
@abstract *Synchronously* refreshes the `PFObject` with the current data from the server and sets an error if it occurs.
@@ -513,7 +513,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
513
513
514
514
@deprecated Please use `-fetch:` instead.
515
515
*/
516
- - (instancetype )refresh : (NSError **)error PARSE_DEPRECATED(" Please use `-fetch:` instead." );
516
+ - (PF_NULLABLE instancetype )refresh : (NSError **)error PARSE_DEPRECATED(" Please use `-fetch:` instead." );
517
517
518
518
/* !
519
519
@abstract *Asynchronously* refreshes the `PFObject` and executes the given callback block.
@@ -544,25 +544,25 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
544
544
/* !
545
545
@abstract *Synchronously* fetches the PFObject with the current data from the server.
546
546
*/
547
- - (instancetype )fetch PF_SWIFT_UNAVAILABLE;
547
+ - (PF_NULLABLE instancetype )fetch PF_SWIFT_UNAVAILABLE;
548
548
/* !
549
549
@abstract *Synchronously* fetches the PFObject with the current data from the server and sets an error if it occurs.
550
550
551
551
@param error Pointer to an `NSError` that will be set if necessary.
552
552
*/
553
- - (instancetype )fetch : (NSError **)error ;
553
+ - (PF_NULLABLE instancetype )fetch : (NSError **)error ;
554
554
555
555
/* !
556
556
@abstract *Synchronously* fetches the `PFObject` data from the server if <isDataAvailable> is `NO`.
557
557
*/
558
- - (PF_NULLABLE PFObject * )fetchIfNeeded PF_SWIFT_UNAVAILABLE;
558
+ - (PF_NULLABLE instancetype )fetchIfNeeded PF_SWIFT_UNAVAILABLE;
559
559
560
560
/* !
561
561
@abstract *Synchronously* fetches the `PFObject` data from the server if <isDataAvailable> is `NO`.
562
562
563
563
@param error Pointer to an `NSError` that will be set if necessary.
564
564
*/
565
- - (PF_NULLABLE PFObject * )fetchIfNeeded : (NSError **)error ;
565
+ - (PF_NULLABLE instancetype )fetchIfNeeded : (NSError **)error ;
566
566
567
567
/* !
568
568
@abstract Fetches the `PFObject` *asynchronously* and sets it as a result for the task.
@@ -615,8 +615,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
615
615
`error` will be `nil` on success and set if there was an error.
616
616
`refreshedObject` will be the `PFObject` with the refreshed data.
617
617
*/
618
- - (void )fetchIfNeededInBackgroundWithTarget : (PF_NULLABLE_S id )target
619
- selector : (PF_NULLABLE_S SEL )selector ;
618
+ - (void )fetchIfNeededInBackgroundWithTarget : (PF_NULLABLE_S id )target selector : (PF_NULLABLE_S SEL )selector ;
620
619
621
620
// /--------------------------------------
622
621
// / @name Getting Many Objects
@@ -627,7 +626,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
627
626
628
627
@param objects The list of objects to fetch.
629
628
*/
630
- + (NSArray *)fetchAll : (PF_NULLABLE NSArray *)objects PF_SWIFT_UNAVAILABLE;
629
+ + (PF_NULLABLE NSArray *)fetchAll : (PF_NULLABLE NSArray *)objects PF_SWIFT_UNAVAILABLE;
631
630
632
631
/* !
633
632
@abstract *Synchronously* fetches all of the `PFObject` objects with the current data from the server
@@ -636,13 +635,13 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
636
635
@param objects The list of objects to fetch.
637
636
@param error Pointer to an `NSError` that will be set if necessary.
638
637
*/
639
- + (NSArray *)fetchAll : (PF_NULLABLE NSArray *)objects error : (NSError **)error ;
638
+ + (PF_NULLABLE NSArray *)fetchAll : (PF_NULLABLE NSArray *)objects error : (NSError **)error ;
640
639
641
640
/* !
642
641
@abstract *Synchronously* fetches all of the `PFObject` objects with the current data from the server.
643
642
@param objects The list of objects to fetch.
644
643
*/
645
- + (NSArray *)fetchAllIfNeeded : (PF_NULLABLE NSArray *)objects PF_SWIFT_UNAVAILABLE;
644
+ + (PF_NULLABLE NSArray *)fetchAllIfNeeded : (PF_NULLABLE NSArray *)objects PF_SWIFT_UNAVAILABLE;
646
645
647
646
/* !
648
647
@abstract *Synchronously* fetches all of the `PFObject` objects with the current data from the server
@@ -651,7 +650,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
651
650
@param objects The list of objects to fetch.
652
651
@param error Pointer to an `NSError` that will be set if necessary.
653
652
*/
654
- + (NSArray *)fetchAllIfNeeded : (PF_NULLABLE NSArray *)objects error : (NSError **)error ;
653
+ + (PF_NULLABLE NSArray *)fetchAllIfNeeded : (PF_NULLABLE NSArray *)objects error : (NSError **)error ;
655
654
656
655
/* !
657
656
@abstract Fetches all of the `PFObject` objects with the current data from the server *asynchronously*.
@@ -731,7 +730,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
731
730
@abstract *Synchronously* loads data from the local datastore into this object,
732
731
if it has not been fetched from the server already.
733
732
*/
734
- - (instancetype )fetchFromLocalDatastore PF_SWIFT_UNAVAILABLE;
733
+ - (PF_NULLABLE instancetype )fetchFromLocalDatastore PF_SWIFT_UNAVAILABLE;
735
734
736
735
/* !
737
736
@abstract *Synchronously* loads data from the local datastore into this object, if it has not been fetched
@@ -742,7 +741,7 @@ NS_REQUIRES_PROPERTY_DEFINITIONS
742
741
743
742
@param error Pointer to an `NSError` that will be set if necessary.
744
743
*/
745
- - (instancetype )fetchFromLocalDatastore : (NSError **)error ;
744
+ - (PF_NULLABLE instancetype )fetchFromLocalDatastore : (NSError **)error ;
746
745
747
746
/* !
748
747
@abstract *Asynchronously* loads data from the local datastore into this object,
0 commit comments