malcolmmacleod / Calculator

0 stars 0 forks source link

Make displayValue an optional #9

Closed malcolmmacleod closed 9 years ago

malcolmmacleod commented 9 years ago

Change the computed instance variable displayValue to be an Optional Double rather than a Double. Its value should be nil if the contents of display.text cannot be interpreted as a Double (you’ll need to use the documentation to understand the NSNumberFormatter code). Setting its value to nil should clear the display out.