Skip to content

Commit

Permalink
simplified file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
reborg committed Dec 7, 2009
1 parent 96961c9 commit c568281
Show file tree
Hide file tree
Showing 9 changed files with 432 additions and 127 deletions.
15 changes: 15 additions & 0 deletions Classes/Controllers/pomodori_controller.rb
@@ -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
4 changes: 4 additions & 0 deletions Classes/Models/pomodoro.rb
Expand Up @@ -14,4 +14,8 @@ def tags
@text.scan(/@\w+/)
end

def save
NSLog("pomodoro saved with text #{text}")
end

end
231 changes: 220 additions & 11 deletions English.lproj/MainMenu.nib/designable.nib

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified English.lproj/MainMenu.nib/keyedobjects.nib
Binary file not shown.

0 comments on commit c568281

Please sign in to comment.