Skip to content

Commit

Permalink
added xcode project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
reborg committed Dec 2, 2009
1 parent 6bc5942 commit e9704a9
Show file tree
Hide file tree
Showing 17 changed files with 5,117 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Pomodori.app
docs
website
*.swp
build
19 changes: 19 additions & 0 deletions Classes/Controllers/timer_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
framework 'foundation'

class TimerController
attr_accessor :timer_label

def awakeFromNib
NSTimer.scheduledTimerWithTimeInterval(
1,
target:self,
selector:'on_timer_tick',
userInfo:nil,
repeats:true)
end

def on_timer_tick
@timer_label.stringValue = Time.now.strftime("%M:%S")
end

end
17 changes: 17 additions & 0 deletions Classes/Models/pomodoro.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class Pomodoro
attr_accessor :text, :timestamp

def initialize(params = {})
@text = params[:text]
@timestamp = params[:timestamp]
end

def timestamp
@timestamp ||= Time.now.to_s
end

def tags
@text.scan(/@\w+/)
end

end
Binary file added English.lproj/InfoPlist.strings
Binary file not shown.
2,719 changes: 2,719 additions & 0 deletions English.lproj/MainMenu.nib/designable.nib

Large diffs are not rendered by default.

Binary file added English.lproj/MainMenu.nib/keyedobjects.nib
Binary file not shown.
28 changes: 28 additions & 0 deletions Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.PomodoriXCode</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
Loading

0 comments on commit e9704a9

Please sign in to comment.