Permalink
Browse files

project structure for MacRuby version

can build but will not run
  • Loading branch information...
1 parent dff7cce commit 7c630d2eff1ad54c4d8186c37e0428a955a5a90a @ashchan committed Oct 24, 2010
Showing with 455 additions and 1,765 deletions.
  1. 0 { → Classes}/AccountDetailController.rb
  2. 0 { → Classes}/ApplicationController.rb
  3. 0 { → Classes}/Constants.rb
  4. 0 { → Classes}/GNAccount.rb
  5. 0 { → Classes}/GNChecker.rb
  6. 0 { → Classes}/GNKeychain.rb
  7. 0 { → Classes}/GNPreferences.rb
  8. 0 { → Classes}/GNSound.rb
  9. 0 { → Classes}/GNStartItems.rb
  10. 0 { → Classes}/Growl.rb
  11. 0 { → Classes}/PreferencesController.rb
  12. 0 { → Classes}/PrefsAccountsViewController.rb
  13. 0 { → Classes}/PrefsSettingsViewController.rb
  14. 0 { → Classes}/gmailchecker
  15. +0 −1,451 Gmail Notifr.xcodeproj/james.mode2v3
  16. +417 −293 Gmail Notifr.xcodeproj/project.pbxproj
  17. 0 { → Libs}/Security.bridgesupport
  18. 0 { → Resources}/AccountDetail.xib
  19. BIN { → Resources}/Catalan.lproj/Localizable.strings
  20. 0 { → Resources}/Catalan.lproj/MainMenu.nib/designable.nib
  21. BIN { → Resources}/Catalan.lproj/MainMenu.nib/keyedobjects.nib
  22. 0 { → Resources}/Credits.html
  23. BIN { → Resources}/English.lproj/InfoPlist.strings
  24. BIN { → Resources}/English.lproj/Localizable.strings
  25. 0 { → Resources}/English.lproj/MainMenu.nib/designable.nib
  26. BIN { → Resources}/English.lproj/MainMenu.nib/keyedobjects.nib
  27. BIN { → Resources}/French.lproj/Localizable.strings
  28. 0 { → Resources}/French.lproj/MainMenu.nib/designable.nib
  29. BIN { → Resources}/French.lproj/MainMenu.nib/keyedobjects.nib
  30. BIN { → Resources}/German.lproj/Localizable.strings
  31. 0 { → Resources}/German.lproj/MainMenu.nib/designable.nib
  32. BIN { → Resources}/German.lproj/MainMenu.nib/keyedobjects.nib
  33. BIN { → Resources}/Italian.lproj/Localizable.strings
  34. 0 { → Resources}/Italian.lproj/MainMenu.nib/designable.nib
  35. BIN { → Resources}/Italian.lproj/MainMenu.nib/keyedobjects.nib
  36. BIN { → Resources}/Japanese.lproj/Localizable.strings
  37. 0 { → Resources}/Japanese.lproj/MainMenu.nib/designable.nib
  38. BIN { → Resources}/Japanese.lproj/MainMenu.nib/keyedobjects.nib
  39. BIN { → Resources}/Norwegian.lproj/Localizable.strings
  40. 0 { → Resources}/Norwegian.lproj/MainMenu.nib/designable.nib
  41. BIN { → Resources}/Norwegian.lproj/MainMenu.nib/keyedobjects.nib
  42. 0 { → Resources}/PreferencesAccounts.xib
  43. 0 { → Resources}/PreferencesSettings.xib
  44. BIN { → Resources}/Spanish.lproj/Localizable.strings
  45. 0 { → Resources}/Spanish.lproj/MainMenu.nib/designable.nib
  46. BIN { → Resources}/Spanish.lproj/MainMenu.nib/keyedobjects.nib
  47. 0 { → Resources}/Sparkle.framework/Headers
  48. 0 { → Resources}/Sparkle.framework/Resources
  49. 0 { → Resources}/Sparkle.framework/Sparkle
  50. 0 { → Resources}/Sparkle.framework/Versions/A/Headers/SUAppcast.h
  51. 0 { → Resources}/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h
  52. 0 { → Resources}/Sparkle.framework/Versions/A/Headers/SUUpdater.h
  53. 0 { → Resources}/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h
  54. 0 { → Resources}/Sparkle.framework/Versions/A/Headers/Sparkle.h
  55. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/Info.plist
  56. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/License.txt
  57. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/SUModelTranslation.plist
  58. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/SUStatus.nib/classes.nib
  59. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/SUStatus.nib/info.nib
  60. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/SUStatus.nib/keyedobjects.nib
  61. 0 ...Resources}/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/classes.nib
  62. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/info.nib
  63. BIN ...rces}/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
  64. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/classes.nib
  65. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/info.nib
  66. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/keyedobjects.nib
  67. 0 ...sources}/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/classes.nib
  68. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/info.nib
  69. BIN ...es}/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
  70. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.strings
  71. 0 ...Resources}/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/classes.nib
  72. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/info.nib
  73. BIN ...rces}/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
  74. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/classes.nib
  75. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/info.nib
  76. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/keyedobjects.nib
  77. 0 ...sources}/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/classes.nib
  78. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/info.nib
  79. BIN ...es}/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
  80. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings
  81. 0 ...Resources}/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/classes.nib
  82. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/info.nib
  83. BIN ...rces}/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
  84. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/classes.nib
  85. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/info.nib
  86. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/keyedobjects.nib
  87. 0 ...sources}/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/classes.nib
  88. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/info.nib
  89. BIN ...es}/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
  90. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.strings
  91. 0 ...Resources}/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/classes.nib
  92. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/info.nib
  93. BIN ...rces}/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
  94. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/classes.nib
  95. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/info.nib
  96. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/keyedobjects.nib
  97. 0 ...sources}/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/classes.nib
  98. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/info.nib
  99. BIN ...es}/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
  100. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.strings
  101. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/fr.lproj/fr.lproj
  102. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/fr_CA.lproj
  103. 0 ...Resources}/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/classes.nib
  104. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/info.nib
  105. BIN ...rces}/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
  106. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/classes.nib
  107. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/info.nib
  108. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/keyedobjects.nib
  109. 0 ...sources}/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/classes.nib
  110. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/info.nib
  111. BIN ...es}/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
  112. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.strings
  113. 0 ...Resources}/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/classes.nib
  114. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/info.nib
  115. BIN ...rces}/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
  116. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/classes.nib
  117. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/info.nib
  118. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/keyedobjects.nib
  119. 0 ...sources}/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/classes.nib
  120. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/info.nib
  121. BIN ...es}/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
  122. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.strings
  123. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/relaunch
  124. 0 ...Resources}/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/classes.nib
  125. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/info.nib
  126. BIN ...rces}/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
  127. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/classes.nib
  128. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/info.nib
  129. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/keyedobjects.nib
  130. 0 ...sources}/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/classes.nib
  131. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/info.nib
  132. BIN ...es}/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
  133. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.strings
  134. 0 ...Resources}/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/classes.nib
  135. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/info.nib
  136. BIN ...rces}/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
  137. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/classes.nib
  138. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/info.nib
  139. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/keyedobjects.nib
  140. 0 ...sources}/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/classes.nib
  141. 0 { → Resources}/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/info.nib
  142. BIN ...es}/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib
  143. BIN { → Resources}/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.strings
  144. BIN { → Resources}/Sparkle.framework/Versions/A/Sparkle
  145. 0 { → Resources}/Sparkle.framework/Versions/Current
  146. BIN { → Resources}/app.icns
  147. BIN { → Resources}/app.tiff
  148. BIN { → Resources}/app_a.tiff
  149. BIN { → Resources}/check.tiff
  150. BIN { → Resources}/check_a.tiff
  151. BIN { → Resources}/dmg_background.jpg
  152. 0 { → Resources}/dsa_pub.pem
  153. BIN { → Resources}/error.tiff
  154. 0 { → Resources}/fr_CA.lproj/Localizable.strings
  155. 0 { → Resources}/fr_CA.lproj/MainMenu.nib/designable.nib
  156. BIN { → Resources}/fr_CA.lproj/MainMenu.nib/keyedobjects.nib
  157. BIN { → Resources}/mail.tiff
  158. BIN { → Resources}/mail_a.tiff
  159. 0 { → Resources}/zh_CN.lproj/Localizable.strings
  160. 0 { → Resources}/zh_CN.lproj/MainMenu.nib/designable.nib
  161. BIN { → Resources}/zh_CN.lproj/MainMenu.nib/keyedobjects.nib
  162. +1 −0 Tests/run_suite.rb
  163. +17 −0 Tests/stub_test.rb
  164. +5 −6 main.m
  165. +15 −15 rb_main.rb
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -0,0 +1 @@
+Dir.glob(File.expand_path('../**/*_test.rb', __FILE__)).each { |test| require test }
View
@@ -0,0 +1,17 @@
+require 'test/unit'
+
+#require 'ruby_file_to_test'
+
+class SimpleTest < Test::Unit::TestCase
+ def setup
+ puts 'setup called'
+ end
+
+ def teardown
+ puts 'teardown called'
+ end
+
+ def test_fail
+ assert false, 'Assertion was false.'
+ end
+end
View
11 main.m 100644 → 100755
@@ -2,14 +2,13 @@
// main.m
// Gmail Notifr
//
-// Created by james on 10/3/08.
-// Copyright (c) 2008 ashchan.com. All rights reserved.
+// Created by James Chen on 10/24/10.
+// Copyright ashchan.com 2010. All rights reserved.
//
-#import <Cocoa/Cocoa.h>
-#import <RubyCocoa/RBRuntime.h>
+#import <MacRuby/MacRuby.h>
-int main(int argc, const char *argv[])
+int main(int argc, char *argv[])
{
- return RBApplicationMain("rb_main.rb", argc, argv);
+ return macruby_main("rb_main.rb", argc, argv);
}
View
30 rb_main.rb 100644 → 100755
@@ -1,23 +1,23 @@
#
-# rb_main.rb
-# Gmail Notifr
+# rb_main.rb
+# Gmail Notifr
#
-# Created by james on 10/3/08.
-# Copyright (c) 2008 ashchan.com. All rights reserved.
+# Created by James Chen on 10/24/10.
+# Copyright ashchan.com 2010. All rights reserved.
#
-require 'osx/cocoa'
+# Loading the Cocoa framework. If you need to load more frameworks, you can
+# do that here too.
+framework 'Cocoa'
-def rb_main_init
- path = OSX::NSBundle.mainBundle.resourcePath.fileSystemRepresentation
- rbfiles = Dir.entries(path).select {|x| /\.rb\z/ =~ x}
- rbfiles -= [ File.basename(__FILE__) ]
- rbfiles.each do |path|
- require( File.basename(path) )
+# Loading all the Ruby project files.
+main = File.basename(__FILE__, File.extname(__FILE__))
+dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
+Dir.glob(File.join(dir_path, '*.{rb,rbo}')).map { |x| File.basename(x, File.extname(x)) }.uniq.each do |path|
+ if path != main
+ require(path)
end
end
-if $0 == __FILE__ then
- rb_main_init
- OSX.NSApplicationMain(0, nil)
-end
+# Starting the Cocoa main loop.
+NSApplicationMain(0, nil)

0 comments on commit 7c630d2

Please sign in to comment.