GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

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/auser/gitnub.git
Caged (author)
Mon Mar 03 17:55:30 -0800 2008
commit  ea8309945fd742dbd7a6d5e2ca58bc52401071bc
tree    c39d7d178e07d07ae51210bf8f11e9dbc7607c6b
parent  78d3665c5d9cab85c6ce0cce8f6eafee2a5012fd
gitnub / ApplicationController.rb
100644 35 lines (28 sloc) 0.772 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# ApplicationController.rb
# GitNub
#
# Created by Justin Palmer on 3/1/08.
# Copyright (c) 2008 Active Reload, LLC. All rights reserved.
#
 
require 'osx/cocoa'
require 'rubygems'
require 'grit'
 
include OSX
OSX.ns_import 'ImageTextCell'
 
class ApplicationController < OSX::NSObject
  ib_outlet :commits_table, :commits_controller, :window
 
  # def applicationDidFinishLaunching(notification)
  # puts "PINFO: #{NSProcessInfo.processInfo.arguments}"
  # end
  
  def applicationShouldTerminateAfterLastWindowClosed(notification)
    return true
  end
  
  def awakeFromNib
    @window.delegate = self
    column = @commits_table.tableColumns[0]
    cell = ImageTextCell.alloc.init
    column.dataCell = cell
    cell.dataDelegate = @commits_controller
  end
end