Skip to content

Commit ec5d284

Browse files
committed
Mark +parseClassName as required method.
All other methods of PFSubclassing are optional and the default implementation is provided by PFObject.
1 parent 0b0248c commit ec5d284

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Parse/PFSubclassing.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ NS_ASSUME_NONNULL_BEGIN
2323
*/
2424
@protocol PFSubclassing
2525

26+
@required
27+
28+
/**
29+
The name of the class as seen in the REST API.
30+
*/
31+
+ (NSString *)parseClassName;
32+
33+
@optional
34+
2635
/**
2736
Constructs an object of the most specific class known to implement `+parseClassName`.
2837
@@ -48,11 +57,6 @@ NS_ASSUME_NONNULL_BEGIN
4857
*/
4958
+ (instancetype)objectWithoutDataWithObjectId:(nullable NSString *)objectId;
5059

51-
/**
52-
The name of the class as seen in the REST API.
53-
*/
54-
+ (NSString *)parseClassName;
55-
5660
/**
5761
Create a query which returns objects of this type.
5862

0 commit comments

Comments
 (0)