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
commit  b3a39d2a574b6a994f21884a1e9e0f36600d2f71
tree    2725fd7049a6b92f9140a7299c85f2e49e4f4b5a
parent  bd420c9b3cf020b34108fe6935f1766841acf5e4
gitnub / TexturedWindow.rb
100644 19 lines (16 sloc) 0.458 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# TexturedWindow.rb
# GitNub
#
# Created by Justin Palmer on 3/2/08.
# Copyright (c) 2008 Active Reload, LLC. All rights reserved.
#
 
require 'osx/cocoa'
 
class TexturedWindow < OSX::NSWindow
  def initWithContentRect_styleMask_backing_defer(rect, mask, backing, defer)
    if super_initWithContentRect_styleMask_backing_defer(rect, mask, backing, defer)
      self.setContentBorderThickness_forEdge(44.0, NSMinYEdge)
    end
    return self
  end
end