Skip to content

Commit

Permalink
[CHANGE] Swift: use NSNumber? so you can set attributes to nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
rentzsch committed Jul 24, 2014
1 parent 63d2ac2 commit b7c029c
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 @@ -57,10 +57,10 @@ class _<$managedObjectClassName$>: <$customSuperentity$> {
<$if Attribute.hasScalarAttributeType$>
<$if Attribute.isReadonly$>
@NSManaged
let <$Attribute.name$>: <$Attribute.scalarAttributeType$>
let <$Attribute.name$>: NSNumber?
<$else$>
@NSManaged
var <$Attribute.name$>: <$Attribute.scalarAttributeType$>
var <$Attribute.name$>: NSNumber?
<$endif$>
<$else$>
<$if Attribute.isReadonly$>
Expand Down

0 comments on commit b7c029c

Please sign in to comment.