File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Parse/Internal/File/State Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,9 @@ @implementation PFFileState
28
28
// /--------------------------------------
29
29
30
30
+ (NSDictionary *)propertyAttributes {
31
- return @{
32
- @" name" : [PFPropertyAttributes attributesWithAssociationType: PFPropertyInfoAssociationTypeCopy],
33
- @" urlString" : [PFPropertyAttributes attributesWithAssociationType: PFPropertyInfoAssociationTypeCopy],
34
- @" mimeType" : [PFPropertyAttributes attributesWithAssociationType: PFPropertyInfoAssociationTypeCopy],
35
- };
31
+ return @{ PFFileStatePropertyName (name) : [PFPropertyAttributes attributesWithAssociationType: PFPropertyInfoAssociationTypeCopy],
32
+ PFFileStatePropertyName (urlString) : [PFPropertyAttributes attributesWithAssociationType: PFPropertyInfoAssociationTypeCopy],
33
+ PFFileStatePropertyName (mimeType) : [PFPropertyAttributes attributesWithAssociationType: PFPropertyInfoAssociationTypeCopy] };
36
34
}
37
35
38
36
// /--------------------------------------
Original file line number Diff line number Diff line change 9
9
10
10
#import " PFFileState.h"
11
11
12
+ #import " PFMacros.h"
13
+
14
+ /* *
15
+ Returns NSString representation of a property.
16
+
17
+ @param NAME The name of the property.
18
+
19
+ @return NSString representation of a given property.
20
+ */
21
+ #define PFFileStatePropertyName (NAME ) @keypath(PFFileState, NAME)
22
+
12
23
NS_ASSUME_NONNULL_BEGIN
13
24
14
25
@interface PFFileState ()
You can’t perform that action at this time.
0 commit comments