Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
432 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
framework 'foundation' | ||
require 'pomodoro' | ||
|
||
class PomodoriController | ||
attr_accessor :text_area | ||
def create(sender) | ||
@pomodoro = Pomodoro.new(:text => @text_area.label.to_s) | ||
if(@pomodoro.save) | ||
NSLog("Controller created pomodoro") | ||
else | ||
# WarningsController.new | ||
# warnings.show('Was not possible to save your pomodoro') | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,8 @@ def tags | |
@text.scan(/@\w+/) | ||
end | ||
|
||
def save | ||
NSLog("pomodoro saved with text #{text}") | ||
end | ||
|
||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.