public
Fork of Caged/gitnub
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/eventualbuddha/gitnub.git
Post a notification when the tab view was changed
Caged (author)
Sun Apr 27 23:05:49 -0700 2008
commit  3b4bb60ea7d45efa5659bfdb51761ab6c9cbf8fc
tree    3eceb17277c2050c640eed3e0533f40eb22528e9
parent  58057aee4abc5c0e9557397bb791faac2de03ace
...
75
76
77
 
 
 
 
 
 
78
...
75
76
77
78
79
80
81
82
83
84
0
@@ -75,4 +75,10 @@ class ApplicationController < OSX::NSObject
0
     tag = %w(commits lighthouse network)[segment.cell.tagForSegment(segment.selectedSegment)]
0
     @tab_panel.selectTabViewItemWithIdentifier(tag)
0
   end
0
+
0
+ def tabView_didSelectTabViewItem(tab_view, tab_item)
0
+ if tab_item.identifier == 'lighthouse'
0
+ NSNotificationCenter.defaultCenter.postNotificationName_object("lighthouse_tab_selected", self)
0
+ end
0
+ end
0
 end
...
78
79
80
81
82
83
84
85
...
78
79
80
 
 
81
82
83
0
@@ -78,7 +78,5 @@ class LighthouseController < OSX::NSObject
0
       item.setInnerHTML(%(<a href="#{@project_url}/tickets/#{ticket[:number].stringValue}">#{ticket[:title].stringValue}</a>))
0
       ticket_list.appendChild(item)
0
     end
0
-
0
-
0
   end
0
 end
0
\ No newline at end of file

Comments

    No one has commented yet.