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/benstiglitz/gitnub.git
Search Repo:
Caged (author)
Mon Mar 03 00:46:13 -0800 2008
commit  a6ad7f3ed651ee1b1332e58fd2a3f7ddd8c0fbee
tree    2859dbdc27b5cb345f25bb6be0e38e7c5d4726e8
parent  3f411c6f61f28b3abb4dee6a201ea4c7dc4adc21
gitnub / ApplicationController.rb
100644 25 lines (22 sloc) 0.537 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
#
# 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
  attr_reader :repo
  ib_outlet :commits_table, :commits_controller
  def awakeFromNib
    column = @commits_table.tableColumns[0]
    cell = ImageTextCell.alloc.init
    column.dataCell = cell
    cell.dataDelegate = @commits_controller
  end
end