This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative 'account.rb' | |
def acc_to_ascii_table() | |
# first line | |
# 5.times do | |
# print " " | |
# 7.times{print "_"} | |
# end | |
# puts "\n" | |
puts "\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RSVerticallyCenteredTextFieldCell: NSTextFieldCell { | |
var mIsEditingOrSelecting:Bool = false | |
override func drawingRect(forBounds theRect: NSRect) -> NSRect { | |
//Get the parent's idea of where we should draw | |
var newRect:NSRect = super.drawingRect(forBounds: theRect) | |
// When the text field is being edited or selected, we have to turn off the magic because it screws up | |
// the configuration of the field editor. We sneak around this by intercepting selectWithFrame and editWithFrame and sneaking a | |
// reduced, centered rect in at the last minute. |