Skip to content

Commit 288218b

Browse files
committed
Explicitly declare property atomic to resolve Xcode warning
1 parent bd7f576 commit 288218b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/machine.h.motemplate

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ extern const struct <$managedObjectClassName$>FetchedProperties {<$foreach Fetch
5252
<$endif$>
5353
<$if Attribute.hasScalarAttributeType$>
5454
<$if Attribute.isReadonly$>
55-
@property (readonly) <$Attribute.scalarAttributeType$> <$Attribute.name$>Value;
55+
@property (atomic, readonly) <$Attribute.scalarAttributeType$> <$Attribute.name$>Value;
5656
- (<$Attribute.scalarAttributeType$>)<$Attribute.name$>Value;
5757
<$else$>
58-
@property <$Attribute.scalarAttributeType$> <$Attribute.name$>Value;
58+
@property (atomic) <$Attribute.scalarAttributeType$> <$Attribute.name$>Value;
5959
- (<$Attribute.scalarAttributeType$>)<$Attribute.name$>Value;
6060
- (void)set<$Attribute.name.initialCapitalString$>Value:(<$Attribute.scalarAttributeType$>)value_;
6161
<$endif$>

0 commit comments

Comments
 (0)