| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #import "AddTodoItemViewController.h" | 5 #import "AddTodoItemViewController.h" |
| 6 | 6 |
| 7 @interface AddTodoItemViewController () | 7 @interface AddTodoItemViewController () |
| 8 | 8 |
| 9 @property (weak, nonatomic) IBOutlet UITextField *textField; | 9 @property (weak, nonatomic) IBOutlet UITextField *textField; |
| 10 @property (weak, nonatomic) IBOutlet UIBarButtonItem *saveButton; | 10 @property (weak, nonatomic) IBOutlet UIBarButtonItem *saveButton; |
| 11 | 11 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 32 if (sender != self.saveButton || self.textField.text.length <= 0) { | 32 if (sender != self.saveButton || self.textField.text.length <= 0) { |
| 33 self.todoItem = nil; | 33 self.todoItem = nil; |
| 34 return; | 34 return; |
| 35 } | 35 } |
| 36 self.todoItem = [[TodoItem alloc] init]; | 36 self.todoItem = [[TodoItem alloc] init]; |
| 37 self.todoItem.itemName = self.textField.text; | 37 self.todoItem.itemName = self.textField.text; |
| 38 self.todoItem.completed = NO; | 38 self.todoItem.completed = NO; |
| 39 } | 39 } |
| 40 | 40 |
| 41 @end | 41 @end |
| OLD | NEW |