public
Description: Watches the ether for the handy *jour scripts.
Homepage:
Clone URL: git://github.com/lachie/starjour.git
Click here to lend your support to: starjour and make a donation at www.pledgie.com !
starjour / MessageView.rb
100644 38 lines (30 sloc) 0.694 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
36
37
38
#
# MessageView.rb
# starjour
#
# Created by Dr Nic on 14/06/08.
# Copyright (c) 2008 Dr Nic Academy Pty Ltd. All rights reserved.
#
 
require 'osx/cocoa'
 
class MessageView < OSX::NSView
  include OSX
  
  def initWithFrame(frame)
    super_initWithFrame(frame)
    # Initialization code here.
    return self
  end
 
  def drawRect(rect)
    # NSColor.lightGrayColor.set
    # NSRectFill(bounds)
 
    super_drawRect rect
  end
  
  # def mouseDown(event)
  # # check for double-clicks
  # if event.clickCount > 1
  # puts "double click"
  # # self.delegate.doubleClick(self) rescue nil if self.delegate
  # end
  #
  # nextResponder.mouseDown(event)
  # end
 
end