Permalink
Browse files

better Xcode3 File templates (patch by Takao Kouji)

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5144 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 45e7828 commit 731be2ebeb85eecaa8ca29d50fecc7ba22ede016 @lrz lrz committed Jan 8, 2011
View
0 ...by File.pbfiletemplate/TemplateInfo.plist → ...by File.pbfiletemplate/TemplateInfo.plist
File renamed without changes.
View
0 ...tes/Ruby/Ruby File.pbfiletemplate/file.rb → .../MacRuby/Ruby File.pbfiletemplate/file.rb 100755 → 100644
File renamed without changes.
View
10 ...e Templates/MacRuby/Ruby class/Ruby NSDocument subclass.pbfiletemplate/TemplateInfo.plist
@@ -0,0 +1,10 @@
+<?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>Description</key>
+ <string>A Ruby class which is a subclass of NSDocument.</string>
+ <key>MainTemplateFile</key>
+ <string>class.rb</string>
+</dict>
+</plist>
View
8 ...plates/File Templates/MacRuby/Ruby class/Ruby NSDocument subclass.pbfiletemplate/class.rb
@@ -0,0 +1,8 @@
+# «FILENAME»
+# «PROJECTNAME»
+#
+# Created by «FULLUSERNAME» on «DATE».
+# Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved.
+
+class «FILEBASENAMEASIDENTIFIER» < NSDocument
+end
View
10 .../File Templates/MacRuby/Ruby class/Ruby NSView subclass.pbfiletemplate/TemplateInfo.plist
@@ -0,0 +1,10 @@
+<?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>Description</key>
+ <string>A Ruby class which is a subclass of NSView.</string>
+ <key>MainTemplateFile</key>
+ <string>class.rb</string>
+</dict>
+</plist>
View
8 ...-templates/File Templates/MacRuby/Ruby class/Ruby NSView subclass.pbfiletemplate/class.rb
@@ -0,0 +1,8 @@
+# «FILENAME»
+# «PROJECTNAME»
+#
+# Created by «FULLUSERNAME» on «DATE».
+# Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved.
+
+class «FILEBASENAMEASIDENTIFIER» < NSView
+end
View
10 ...tes/MacRuby/Ruby class/Ruby NSWindowController subclass.pbfiletemplate/TemplateInfo.plist
@@ -0,0 +1,10 @@
+<?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>Description</key>
+ <string>A Ruby class which is a subclass of NSWindowController.</string>
+ <key>MainTemplateFile</key>
+ <string>class.rb</string>
+</dict>
+</plist>
View
8 ...ile Templates/MacRuby/Ruby class/Ruby NSWindowController subclass.pbfiletemplate/class.rb
@@ -0,0 +1,8 @@
+# «FILENAME»
+# «PROJECTNAME»
+#
+# Created by «FULLUSERNAME» on «DATE».
+# Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved.
+
+class «FILEBASENAMEASIDENTIFIER» < NSWindowController
+end
View
10 ...-templates/File Templates/MacRuby/Ruby class/Ruby class.pbfiletemplate/TemplateInfo.plist
@@ -0,0 +1,10 @@
+<?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>Description</key>
+ <string>A Ruby class file.</string>
+ <key>MainTemplateFile</key>
+ <string>class.rb</string>
+</dict>
+</plist>
View
8 misc/xcode-templates/File Templates/MacRuby/Ruby class/Ruby class.pbfiletemplate/class.rb
@@ -0,0 +1,8 @@
+# «FILENAME»
+# «PROJECTNAME»
+#
+# Created by «FULLUSERNAME» on «DATE».
+# Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved.
+
+class «FILEBASENAMEASIDENTIFIER»
+end
View
48 misc/xcode-templates/File Templates/MacRuby/Ruby class/TemplateChooser.plist
@@ -0,0 +1,48 @@
+<?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>OptionsLabel</key>
+ <string>Subclass of</string>
+ <key>PopupMenu</key>
+ <array>
+ <dict>
+ <key>Key</key>
+ <string>Obj</string>
+ <key>Title</key>
+ <string>None</string>
+ </dict>
+ <dict>
+ <key>Key</key>
+ <string>Doc</string>
+ <key>Title</key>
+ <string>NSDocument</string>
+ </dict>
+ <dict>
+ <key>Key</key>
+ <string>View</string>
+ <key>Title</key>
+ <string>NSView</string>
+ </dict>
+ <dict>
+ <key>Key</key>
+ <string>Win</string>
+ <key>Title</key>
+ <string>NSWindowController</string>
+ </dict>
+ </array>
+ <key>TemplateSelection</key>
+ <dict>
+ <key></key>
+ <string>Ruby class</string>
+ <key>Doc</key>
+ <string>Ruby NSDocument subclass</string>
+ <key>Obj</key>
+ <string>Ruby class</string>
+ <key>View</key>
+ <string>Ruby NSView subclass</string>
+ <key>Win</key>
+ <string>Ruby NSWindowController subclass</string>
+ </dict>
+</dict>
+</plist>

0 comments on commit 731be2e

Please sign in to comment.