Take the 2008 Git User's Survey and help out! [ hide ]

public
Description: A buildbot GUI for OS X
Homepage: http://code.google.com/p/buildwatch/
Clone URL: git://github.com/dustin/buildwatch.git
Search Repo:
Use defaults so one can monitor a buildbot that isn't localhost.
dustin (author)
Wed Mar 05 23:25:12 -0800 2008
commit  8461488a3f97bda25e52a56c04166032fd5de320
tree    876cf329232a811776d85f373d3b115034692caf
parent  8db9c2e189cf81f656c9624fcdf37ace27403e59
...
153
154
155
 
 
 
 
 
 
 
 
 
156
157
158
159
160
 
 
161
162
163
...
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
 
 
168
169
170
171
172
0
@@ -153,11 +153,20 @@ class BuildWatchAppDelegate(NSObject):
0
         while not self.queue.empty():
0
             self.queue.get()(self.bridge)
0
 
0
+ def initDefaults(self):
0
+ d=NSMutableDictionary.alloc().initWithCapacity_(1)
0
+ d.setObject_forKey_("localhost:9988", "location")
0
+ defaults=NSUserDefaults.standardUserDefaults()
0
+ defaults.registerDefaults_(d)
0
+
0
+ def awakeFromNib(self):
0
+ self.initDefaults()
0
+
0
     def applicationDidFinishLaunching_(self, sender):
0
         NSLog("Application did finish launching.")
0
         self.queue=Queue.Queue()
0
- # self.bridge=MessageBridge.alloc().init()
0
- TwistyThread(TextClient("localhost:9988", self.queue))
0
+ loc=NSUserDefaults.standardUserDefaults().objectForKey_("location")
0
+ TwistyThread(TextClient(loc, self.queue))
0
 
0
         # Drain the queue from twisted occasionally
0
         self.timer = NSTimer.scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_(

Comments

    No one has commented yet.