Skip to content

Commit

Permalink
Merge pull request #234 from webair/master
Browse files Browse the repository at this point in the history
[CHANGE] Add swift '?' mark for optional attributes. (Chris Weber)
  • Loading branch information
rentzsch committed Aug 12, 2014
2 parents 1c03cf9 + 1e343e6 commit 5ee430c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/machine.swift.motemplate
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ class _<$managedObjectClassName$>: <$customSuperentity$> {
<$else$>
<$if Attribute.isReadonly$>
@NSManaged
let <$Attribute.name$>: <$Attribute.objectAttributeType$>
let <$Attribute.name$>: <$Attribute.objectAttributeType$><$if Attribute.isOptional$>?<$endif$>
<$else$>
@NSManaged
var <$Attribute.name$>: <$Attribute.objectAttributeType$>
var <$Attribute.name$>: <$Attribute.objectAttributeType$><$if Attribute.isOptional$>?<$endif$>
<$endif$>
<$endif$>
// func validate<$Attribute.name.initialCapitalString$>(value: AutoreleasingUnsafePointer<AnyObject>, error: NSErrorPointer) {}
Expand Down

0 comments on commit 5ee430c

Please sign in to comment.