Skip to content
Browse files

Make it work. See full commit message for details:

* The Main.rb file was never being loaded in the runtime with a call like: require 'Main'.
* The resources path of the bundle isn't added to the load path by default, so I did this in PrefPane.rb.
* Why do you really need the Main class instead of using the PrefPane class?
* You had the `text' outlet of Main hooked up to the content view in the nib, not to the actual text label.
  • Loading branch information...
1 parent e745b1e commit c338e716160f4ae82cd64fcadc2c2ab5b9f2fedb @alloy committed
Showing with 15 additions and 10 deletions.
  1. +10 −10 English.lproj/Testing.xib
  2. +5 −0 PrefPane.rb
View
20 English.lproj/Testing.xib
@@ -2,17 +2,17 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1050</int>
- <string key="IBDocument.SystemVersion">10J567</string>
- <string key="IBDocument.InterfaceBuilderVersion">804</string>
+ <string key="IBDocument.SystemVersion">10H574</string>
+ <string key="IBDocument.InterfaceBuilderVersion">823</string>
<string key="IBDocument.AppKitVersion">1038.35</string>
- <string key="IBDocument.HIToolboxVersion">462.00</string>
+ <string key="IBDocument.HIToolboxVersion">461.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="NS.object.0">804</string>
+ <string key="NS.object.0">823</string>
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="103"/>
+ <integer value="6"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -141,9 +141,9 @@
<object class="IBOutletConnection" key="connection">
<string key="label">text</string>
<reference key="source" ref="261761618"/>
- <reference key="destination" ref="1037298196"/>
+ <reference key="destination" ref="27482643"/>
</object>
- <int key="connectionID">105</int>
+ <int key="connectionID">106</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
@@ -256,9 +256,9 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{464, -67}, {668, 368}}</string>
+ <string>{{626, 111}, {668, 368}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{464, -67}, {668, 368}}</string>
+ <string>{{626, 111}, {668, 368}}</string>
<integer value="1"/>
<integer value="1"/>
<string>{224.664, 10}</string>
@@ -283,7 +283,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">105</int>
+ <int key="maxID">106</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
View
5 PrefPane.rb
@@ -8,10 +8,15 @@
framework 'Cocoa'
+$LOAD_PATH.unshift File.expand_path('../', __FILE__)
+
+require 'Main'
+
class PrefPane < NSPreferencePane
# callback for when the preference pane view is loaded
def mainViewDidLoad
+ puts "FOOO!"
end
end

0 comments on commit c338e71

Please sign in to comment.
Something went wrong with that request. Please try again.