File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 5
5
<$if hasCustomSuperentity$><$if hasSuperentity$>#import "<$customSuperentity$>.h"
6
6
<$else$><$if hasCustomBaseCaseImport$>#import <$baseClassImport$><$else$>#import "<$customSuperentity$>.h"<$endif$><$endif$><$endif$>
7
7
8
+ <$if noninheritedAttributes.@count > 0$>
8
9
extern const struct <$managedObjectClassName$>Attributes {<$foreach Attribute noninheritedAttributes do$>
9
10
<$if TemplateVar.arc$>__unsafe_unretained<$endif$> NSString *<$Attribute.name$>;<$endforeach do$>
10
11
} <$managedObjectClassName$>Attributes;
12
+ <$endif$>
11
13
14
+ <$if noninheritedRelationships.@count > 0$>
12
15
extern const struct <$managedObjectClassName$>Relationships {<$foreach Relationship noninheritedRelationships do$>
13
16
<$if TemplateVar.arc$>__unsafe_unretained<$endif$> NSString *<$Relationship.name$>;<$endforeach do$>
14
17
} <$managedObjectClassName$>Relationships;
18
+ <$endif$>
15
19
20
+ <$if noninheritedFetchedProperties.@count > 0$>
16
21
extern const struct <$managedObjectClassName$>FetchedProperties {<$foreach FetchedProperty noninheritedFetchedProperties do$>
17
22
<$if TemplateVar.arc$>__unsafe_unretained<$endif$> NSString *<$FetchedProperty.name$>;<$endforeach do$>
18
23
} <$managedObjectClassName$>FetchedProperties;
24
+ <$endif$>
19
25
20
26
<$foreach Relationship noninheritedRelationships do$>@class <$Relationship.destinationEntity.managedObjectClassName$>;
21
27
<$endforeach do$>
@@ -26,7 +32,7 @@ extern const struct <$managedObjectClassName$>FetchedProperties {<$foreach Fetch
26
32
<$endforeach do$>
27
33
<$else$>@class <$Attribute.objectAttributeClassName$>;<$endif$><$endif$>
28
34
<$endforeach do$>
29
- @interface <$managedObjectClassName$>ID : NSManagedObjectID {}
35
+ @interface <$managedObjectClassName$>ID : <$if hasSuperentity$><$customSuperentity$>ID<$else$> NSManagedObjectID<$endif$> {}
30
36
@end
31
37
32
38
@interface _<$managedObjectClassName$> : <$customSuperentity$> {}
Original file line number Diff line number Diff line change 3
3
4
4
#import "_<$managedObjectClassName$>.h"
5
5
6
+ <$if noninheritedAttributes.@count > 0$>
6
7
const struct <$managedObjectClassName$>Attributes <$managedObjectClassName$>Attributes = {<$foreach Attribute noninheritedAttributes do$>
7
8
.<$Attribute.name$> = @"<$Attribute.name$>",<$endforeach do$>
8
9
};
10
+ <$endif$>
9
11
12
+ <$if noninheritedRelationships.@count > 0$>
10
13
const struct <$managedObjectClassName$>Relationships <$managedObjectClassName$>Relationships = {<$foreach Relationship noninheritedRelationships do$>
11
14
.<$Relationship.name$> = @"<$Relationship.name$>",<$endforeach do$>
12
15
};
16
+ <$endif$>
13
17
18
+ <$if noninheritedFetchedProperties.@count > 0$>
14
19
const struct <$managedObjectClassName$>FetchedProperties <$managedObjectClassName$>FetchedProperties = {<$foreach FetchedProperty noninheritedFetchedProperties do$>
15
20
.<$FetchedProperty.name$> = @"<$FetchedProperty.name$>",<$endforeach do$>
16
21
};
22
+ <$endif$>
17
23
18
24
@implementation <$managedObjectClassName$>ID
19
25
@end
You can’t perform that action at this time.
0 commit comments