racket/gui cocoa: fix internal ObjC class names

"My" -> "Racket". The "My" prefix was from initial experiments,
of course, and I just never got around to changing it before.
I think these names go into a global namespace, though, at the
ObjC level, so they need to have a distinct and Racket-specific
prefix.
This commit is contained in:
Matthew Flatt 2012-05-16 08:07:29 -06:00
parent 3d8c1e200a
commit 3a9f8eea4f
16 changed files with 55 additions and 55 deletions

View File

@ -14,7 +14,7 @@
(provide (provide
(protect-out button% (protect-out button%
core-button% core-button%
MyButton)) RacketButton))
;; ---------------------------------------- ;; ----------------------------------------
@ -26,7 +26,7 @@
(define NSSmallControlSize 1) (define NSSmallControlSize 1)
(define NSMiniControlSize 2) (define NSMiniControlSize 2)
(define-objc-class MyButton NSButton (define-objc-class RacketButton NSButton
#:mixins (FocusResponder KeyMouseResponder CursorDisplayer) #:mixins (FocusResponder KeyMouseResponder CursorDisplayer)
[wxb] [wxb]
(-a _void (clicked: [_id sender]) (-a _void (clicked: [_id sender])
@ -47,7 +47,7 @@
(define button-cocoa (define button-cocoa
(let ([cocoa (let ([cocoa
(as-objc-allocation (as-objc-allocation
(tell (tell MyButton alloc) (tell (tell RacketButton alloc)
initWithFrame: #:type _NSRect (make-NSRect (make-init-point x y) initWithFrame: #:type _NSRect (make-NSRect (make-init-point x y)
(make-NSSize w h))))]) (make-NSSize w h))))])
(when button-type (when button-type

View File

@ -62,7 +62,7 @@
(make-NSSize 32000 32000)))) (make-NSSize 32000 32000))))
(tellv ctx restoreGraphicsState))))))) (tellv ctx restoreGraphicsState)))))))
(define-objc-mixin (MyViewMixin Superclass) (define-objc-mixin (RacketViewMixin Superclass)
#:mixins (KeyMouseTextResponder CursorDisplayer FocusResponder) #:mixins (KeyMouseTextResponder CursorDisplayer FocusResponder)
[wxb] [wxb]
(-a _void (drawRect: [_NSRect r]) (-a _void (drawRect: [_NSRect r])
@ -87,12 +87,12 @@
(let ([wx (->wx wxb)]) (let ([wx (->wx wxb)])
(when wx (send wx do-scroll 'vertical scroller)))))) (when wx (send wx do-scroll 'vertical scroller))))))
(define-objc-class MyView NSView (define-objc-class RacketView NSView
#:mixins (MyViewMixin) #:mixins (RacketViewMixin)
[wxb]) [wxb])
(define-objc-class MyGLView NSOpenGLView (define-objc-class RacketGLView NSOpenGLView
#:mixins (MyViewMixin) #:mixins (RacketViewMixin)
[wxb]) [wxb])
(define-objc-class CornerlessFrameView NSView (define-objc-class CornerlessFrameView NSView
@ -149,7 +149,7 @@
(- (NSSize-height (NSRect-size r)) 4))))) (- (NSSize-height (NSRect-size r)) 4)))))
(tellv ctx restoreGraphicsState))))) (tellv ctx restoreGraphicsState)))))
(define-objc-class MyComboBox NSComboBox (define-objc-class RacketComboBox NSComboBox
#:mixins (FocusResponder KeyMouseTextResponder CursorDisplayer) #:mixins (FocusResponder KeyMouseTextResponder CursorDisplayer)
#:protocols (NSComboBoxDelegate) #:protocols (NSComboBoxDelegate)
[wxb] [wxb]
@ -347,12 +347,12 @@
(max 0 (- h (if hscroll? scroll-width 0) (* 2 y-margin)))))]) (max 0 (- h (if hscroll? scroll-width 0) (* 2 y-margin)))))])
(as-objc-allocation (as-objc-allocation
(if (or is-combo? (not (memq 'gl style))) (if (or is-combo? (not (memq 'gl style)))
(tell (tell (if is-combo? MyComboBox MyView) (tell (tell (if is-combo? RacketComboBox RacketView)
alloc) alloc)
initWithFrame: #:type _NSRect r) initWithFrame: #:type _NSRect r)
(let ([pf (gl-config->pixel-format gl-config)]) (let ([pf (gl-config->pixel-format gl-config)])
(begin0 (begin0
(tell (tell MyGLView alloc) (tell (tell RacketGLView alloc)
initWithFrame: #:type _NSRect r initWithFrame: #:type _NSRect r
pixelFormat: pf) pixelFormat: pf)
(tellv pf release))))))) (tellv pf release)))))))

View File

@ -17,7 +17,7 @@
(import-class NSPopUpButton) (import-class NSPopUpButton)
(define-objc-class MyPopUpButton NSPopUpButton (define-objc-class RacketPopUpButton NSPopUpButton
#:mixins (FocusResponder KeyMouseResponder CursorDisplayer) #:mixins (FocusResponder KeyMouseResponder CursorDisplayer)
[wxb] [wxb]
(-a _void (clicked: [_id sender]) (-a _void (clicked: [_id sender])
@ -33,7 +33,7 @@
[cocoa [cocoa
(let ([cocoa (let ([cocoa
(as-objc-allocation (as-objc-allocation
(tell (tell MyPopUpButton alloc) (tell (tell RacketPopUpButton alloc)
initWithFrame: #:type _NSRect (make-NSRect (make-init-point x y) initWithFrame: #:type _NSRect (make-NSRect (make-init-point x y)
(make-NSSize w h)) (make-NSSize w h))
pullsDown: #:type _BOOL #f))]) pullsDown: #:type _BOOL #f))])

View File

@ -41,7 +41,7 @@
;; problems. ;; problems.
(define all-windows (make-hash)) (define all-windows (make-hash))
(define-objc-mixin (MyWindowMethods Superclass) (define-objc-mixin (RacketWindowMethods Superclass)
[wxb] [wxb]
[-a _scheme (getEventspace) [-a _scheme (getEventspace)
(let ([wx (->wx wxb)]) (let ([wx (->wx wxb)])
@ -147,12 +147,12 @@
(lambda () (send wx on-toolbar-click)))))) (lambda () (send wx on-toolbar-click))))))
(void)]) (void)])
(define-objc-class MyWindow NSWindow (define-objc-class RacketWindow NSWindow
#:mixins (FocusResponder KeyMouseResponder MyWindowMethods) #:mixins (FocusResponder KeyMouseResponder RacketWindowMethods)
[wxb]) [wxb])
(define-objc-class MyPanel NSPanel (define-objc-class RacketPanel NSPanel
#:mixins (FocusResponder KeyMouseResponder MyWindowMethods) #:mixins (FocusResponder KeyMouseResponder RacketWindowMethods)
[wxb]) [wxb])
(set-front-hook! (lambda () (set-front-hook! (lambda ()
@ -173,8 +173,8 @@
;; eventspace: ;; eventspace:
(not (ptr-equal? w (send root-fake-frame get-cocoa))) (not (ptr-equal? w (send root-fake-frame get-cocoa)))
(is-mouse-or-key?)) (is-mouse-or-key?))
(or (objc-is-a? w MyWindow) (or (objc-is-a? w RacketWindow)
(objc-is-a? w MyPanel)) (objc-is-a? w RacketPanel))
(tell #:type _scheme w getEventspace))] (tell #:type _scheme w getEventspace))]
[front (send front get-eventspace)] [front (send front get-eventspace)]
[root-fake-frame [root-fake-frame
@ -211,8 +211,8 @@
h)))]) h)))])
(let ([c (as-objc-allocation (let ([c (as-objc-allocation
(tell (tell (if (or is-sheet? (memq 'float style)) (tell (tell (if (or is-sheet? (memq 'float style))
MyPanel RacketPanel
MyWindow) RacketWindow)
alloc) alloc)
initWithContentRect: #:type _NSRect init-rect initWithContentRect: #:type _NSRect init-rect
styleMask: #:type _int (if (memq 'no-caption style) styleMask: #:type _int (if (memq 'no-caption style)

View File

@ -17,7 +17,7 @@
(import-class NSProgressIndicator) (import-class NSProgressIndicator)
(define-objc-class MyProgressIndicator NSProgressIndicator (define-objc-class RacketProgressIndicator NSProgressIndicator
#:mixins (KeyMouseResponder CursorDisplayer) #:mixins (KeyMouseResponder CursorDisplayer)
[wxb]) [wxb])
@ -34,7 +34,7 @@
[cocoa (let ([cocoa (as-objc-allocation [cocoa (let ([cocoa (as-objc-allocation
;; Beware that a gauge may be finally deallocated in ;; Beware that a gauge may be finally deallocated in
;; a separate OS-level thread ;; a separate OS-level thread
(tell (tell MyProgressIndicator alloc) init))]) (tell (tell RacketProgressIndicator alloc) init))])
(tellv cocoa setIndeterminate: #:type _BOOL #f) (tellv cocoa setIndeterminate: #:type _BOOL #f)
(tellv cocoa setMaxValue: #:type _double* rng) (tellv cocoa setMaxValue: #:type _double* rng)
(tellv cocoa setDoubleValue: #:type _double* 0.0) (tellv cocoa setDoubleValue: #:type _double* 0.0)

View File

@ -13,7 +13,7 @@
(import-class NSBox) (import-class NSBox)
(define-objc-class MyBox NSBox (define-objc-class RacketBox NSBox
#:mixins (FocusResponder KeyMouseResponder CursorDisplayer) #:mixins (FocusResponder KeyMouseResponder CursorDisplayer)
[wxb]) [wxb])
@ -27,7 +27,7 @@
(super-new [parent parent] (super-new [parent parent]
[cocoa [cocoa
(let ([cocoa (as-objc-allocation (let ([cocoa (as-objc-allocation
(tell (tell MyBox alloc) init))]) (tell (tell RacketBox alloc) init))])
(when label (when label
(tellv cocoa setTitle: #:type _NSString label) (tellv cocoa setTitle: #:type _NSString label)
(tellv cocoa sizeToFit)) (tellv cocoa sizeToFit))

View File

@ -21,7 +21,7 @@
(import-class NSScrollView NSTableView NSTableColumn NSCell NSIndexSet) (import-class NSScrollView NSTableView NSTableColumn NSCell NSIndexSet)
(import-protocol NSTableViewDataSource) (import-protocol NSTableViewDataSource)
(define-objc-class MyTableView NSTableView (define-objc-class RacketTableView NSTableView
#:mixins (FocusResponder KeyMouseResponder CursorDisplayer) #:mixins (FocusResponder KeyMouseResponder CursorDisplayer)
[wxb] [wxb]
[-a _id (preparedCellAtColumn: [_NSInteger column] row: [_NSInteger row]) [-a _id (preparedCellAtColumn: [_NSInteger column] row: [_NSInteger row])
@ -44,7 +44,7 @@
(let ([wx (->wx wxb)]) (let ([wx (->wx wxb)])
(when wx (send wx reset-column-order)))]) (when wx (send wx reset-column-order)))])
(define-objc-class MyDataSource NSObject (define-objc-class RacketDataSource NSObject
#:protocols (NSTableViewDataSource) #:protocols (NSTableViewDataSource)
[wxb] [wxb]
[-a _NSInteger (numberOfRowsInTableView: [_id view]) [-a _NSInteger (numberOfRowsInTableView: [_id view])
@ -73,7 +73,7 @@
register-as-child) register-as-child)
(define source (as-objc-allocation (define source (as-objc-allocation
(tell (tell MyDataSource alloc) init))) (tell (tell RacketDataSource alloc) init)))
(set-ivar! source wxb (->wxb this)) (set-ivar! source wxb (->wxb this))
(define itemss (cons choices (define itemss (cons choices
@ -89,7 +89,7 @@
(define-values (content-cocoa column-cocoas) (define-values (content-cocoa column-cocoas)
(let ([content-cocoa (let ([content-cocoa
(as-objc-allocation (as-objc-allocation
(tell (tell MyTableView alloc) init))]) (tell (tell RacketTableView alloc) init))])
(tellv content-cocoa setDelegate: content-cocoa) (tellv content-cocoa setDelegate: content-cocoa)
(tellv content-cocoa setDataSource: source) (tellv content-cocoa setDataSource: source)
(define cols (define cols

View File

@ -37,7 +37,7 @@
(define the-apple-menu #f) (define the-apple-menu #f)
(define recurring-for-command (make-parameter #f)) (define recurring-for-command (make-parameter #f))
(define-objc-class MyBarMenu NSMenu (define-objc-class RacketBarMenu NSMenu
[] []
;; Disable automatic handling of keyboard shortcuts, except for ;; Disable automatic handling of keyboard shortcuts, except for
;; the Apple menu ;; the Apple menu
@ -66,7 +66,7 @@
(tell r keyUp: evt)]))) (tell r keyUp: evt)])))
#t))))))))) #t)))))))))
(define cocoa-mb (tell (tell MyBarMenu alloc) init)) (define cocoa-mb (tell (tell RacketBarMenu alloc) init))
(define current-mb #f) (define current-mb #f)
;; Used to detect mouse click on the menu bar: ;; Used to detect mouse click on the menu bar:

View File

@ -13,7 +13,7 @@
(import-class NSMenuItem) (import-class NSMenuItem)
(define-objc-class MyMenuItem NSMenuItem (define-objc-class RacketMenuItem NSMenuItem
[wxb] [wxb]
(-a _void (selected: [_id sender]) (-a _void (selected: [_id sender])
(let ([wx (->wx wxb)]) (let ([wx (->wx wxb)])
@ -60,7 +60,7 @@
(if submenu (if submenu
(send submenu install menu label enabled?) (send submenu install menu label enabled?)
(let ([item (as-objc-allocation (let ([item (as-objc-allocation
(tell (tell MyMenuItem alloc) (tell (tell RacketMenuItem alloc)
initWithTitle: #:type _NSString (clean-menu-label (regexp-replace #rx"\t.*" label "")) initWithTitle: #:type _NSString (clean-menu-label (regexp-replace #rx"\t.*" label ""))
action: #:type _SEL #f action: #:type _SEL #f
keyEquivalent: #:type _NSString ""))]) keyEquivalent: #:type _NSString ""))])

View File

@ -62,11 +62,11 @@
;; ---------------------------------------- ;; ----------------------------------------
(define-objc-class MyTextField NSTextField (define-objc-class RacketTextField NSTextField
#:mixins (KeyMouseResponder CursorDisplayer) #:mixins (KeyMouseResponder CursorDisplayer)
[wxb]) [wxb])
(define-objc-class MyImageView NSImageView (define-objc-class RacketImageView NSImageView
#:mixins (KeyMouseResponder CursorDisplayer) #:mixins (KeyMouseResponder CursorDisplayer)
[wxb]) [wxb])
@ -84,9 +84,9 @@
[cocoa [cocoa
(if (string? label) (if (string? label)
(as-objc-allocation (as-objc-allocation
(tell (tell MyTextField alloc) init)) (tell (tell RacketTextField alloc) init))
(as-objc-allocation (as-objc-allocation
(tell (tell MyImageView alloc) init)))]) (tell (tell RacketImageView alloc) init)))])
(cond (cond
[(string? label) [(string? label)
(init-font cocoa font) (init-font cocoa font)

View File

@ -16,7 +16,7 @@
(import-class NSView NSGraphicsContext) (import-class NSView NSGraphicsContext)
(define-objc-class MyPanelView NSView (define-objc-class RacketPanelView NSView
#:mixins (KeyMouseTextResponder CursorDisplayer) #:mixins (KeyMouseTextResponder CursorDisplayer)
[wxb]) [wxb])
@ -118,7 +118,7 @@
(super-new [parent parent] (super-new [parent parent]
[cocoa [cocoa
(as-objc-allocation (as-objc-allocation
(tell (tell (if has-border? FrameView MyPanelView) alloc) (tell (tell (if has-border? FrameView RacketPanelView) alloc)
initWithFrame: #:type _NSRect (make-NSRect (make-init-point x y) initWithFrame: #:type _NSRect (make-NSRect (make-init-point x y)
(make-NSSize (max (if has-border? 3 1) w) (make-NSSize (max (if has-border? 3 1) w)
(max (if has-border? 3 1) h)))))] (max (if has-border? 3 1) h)))))]
@ -129,7 +129,7 @@
(let* ([c (get-cocoa)] (let* ([c (get-cocoa)]
[f (tell #:type _NSRect c frame)]) [f (tell #:type _NSRect c frame)])
(as-objc-allocation (as-objc-allocation
(tell (tell MyPanelView alloc) (tell (tell RacketPanelView alloc)
initWithFrame: #:type _NSRect (make-NSRect (make-init-point 1 1) initWithFrame: #:type _NSRect (make-NSRect (make-init-point 1 1)
(let ([s (NSRect-size f)]) (let ([s (NSRect-size f)])
(make-NSSize (max 1 (- (NSSize-width s) 2)) (make-NSSize (max 1 (- (NSSize-width s) 2))

View File

@ -49,7 +49,7 @@
(define got-file? #f) (define got-file? #f)
(define-objc-class MyApplicationDelegate NSObject #:protocols (NSApplicationDelegate) (define-objc-class RacketApplicationDelegate NSObject #:protocols (NSApplicationDelegate)
[] []
[-a _NSUInteger (applicationShouldTerminate: [_id app]) [-a _NSUInteger (applicationShouldTerminate: [_id app])
(queue-quit-event) (queue-quit-event)
@ -113,7 +113,7 @@
(unless (zero? v) (unless (zero? v)
(log-error (format "error from TransformProcessType: ~a" v))))) (log-error (format "error from TransformProcessType: ~a" v)))))
(define app-delegate (tell (tell MyApplicationDelegate alloc) init)) (define app-delegate (tell (tell RacketApplicationDelegate alloc) init))
(tellv app setDelegate: app-delegate) (tellv app setDelegate: app-delegate)
(unless (scheme_register_process_global "Racket-GUI-no-front" #f) (unless (scheme_register_process_global "Racket-GUI-no-front" #f)
(tellv app activateIgnoringOtherApps: #:type _BOOL #t)) (tellv app activateIgnoringOtherApps: #:type _BOOL #t))

View File

@ -22,7 +22,7 @@
(define NSRadioModeMatrix 0) (define NSRadioModeMatrix 0)
(define NSListModeMatrix 2) (define NSListModeMatrix 2)
(define-objc-class MyMatrix NSMatrix (define-objc-class RacketMatrix NSMatrix
#:mixins (FocusResponder KeyMouseResponder CursorDisplayer) #:mixins (FocusResponder KeyMouseResponder CursorDisplayer)
[wxb] [wxb]
(-a _void (clicked: [_id sender]) (-a _void (clicked: [_id sender])
@ -31,7 +31,7 @@
(tellv self setAllowsEmptySelection: #:type _BOOL #f) (tellv self setAllowsEmptySelection: #:type _BOOL #f)
(queue-window*-event wxb (lambda (wx) (send wx clicked))))) (queue-window*-event wxb (lambda (wx) (send wx clicked)))))
(define-objc-class MyImageButtonCell NSButtonCell (define-objc-class RacketImageButtonCell NSButtonCell
[img] [img]
[-a _NSSize (cellSize) [-a _NSSize (cellSize)
(let ([s (super-tell #:type _NSSize cellSize)]) (let ([s (super-tell #:type _NSSize cellSize)])
@ -74,13 +74,13 @@
[cocoa [cocoa
(let ([cocoa (let ([cocoa
(as-objc-allocation (as-objc-allocation
(tell (tell MyMatrix alloc) (tell (tell RacketMatrix alloc)
initWithFrame: #:type _NSRect (make-NSRect (make-init-point x y) initWithFrame: #:type _NSRect (make-NSRect (make-init-point x y)
(make-NSSize w h)) (make-NSSize w h))
mode: #:type _int NSRadioModeMatrix mode: #:type _int NSRadioModeMatrix
cellClass: (if (andmap string? labels) cellClass: (if (andmap string? labels)
NSButtonCell NSButtonCell
MyImageButtonCell) RacketImageButtonCell)
numberOfRows: #:type _NSInteger (if horiz? 1 (length labels)) numberOfRows: #:type _NSInteger (if horiz? 1 (length labels))
numberOfColumns: #:type _NSInteger (if horiz? (length labels) 1)))]) numberOfColumns: #:type _NSInteger (if horiz? (length labels) 1)))])
(for ([label (in-list labels)] (for ([label (in-list labels)]

View File

@ -21,7 +21,7 @@
(import-class NSSlider NSTextField NSView) (import-class NSSlider NSTextField NSView)
(define-objc-class MySlider NSSlider (define-objc-class RacketSlider NSSlider
#:mixins (FocusResponder KeyMouseResponder CursorDisplayer) #:mixins (FocusResponder KeyMouseResponder CursorDisplayer)
[wxb] [wxb]
(-a _void (changed: [_id sender]) (-a _void (changed: [_id sender])
@ -51,7 +51,7 @@
(define slider-cocoa (define slider-cocoa
(let ([cocoa (as-objc-allocation (let ([cocoa (as-objc-allocation
(tell (tell MySlider alloc) init))]) (tell (tell RacketSlider alloc) init))])
(tellv cocoa setMinValue: #:type _double* lo) (tellv cocoa setMinValue: #:type _double* lo)
(tellv cocoa setMaxValue: #:type _double* hi) (tellv cocoa setMaxValue: #:type _double* hi)
(tellv cocoa setDoubleValue: #:type _double* (flip val)) (tellv cocoa setDoubleValue: #:type _double* (flip val))

View File

@ -9,7 +9,7 @@
(import-class NSSound) (import-class NSSound)
(define-objc-class MySound NSSound (define-objc-class RacketSound NSSound
[result [result
sema] sema]
[-a _void (sound: [_id sound] didFinishPlaying: [_BOOL ok?]) [-a _void (sound: [_id sound] didFinishPlaying: [_BOOL ok?])
@ -19,7 +19,7 @@
(define (play-sound path async?) (define (play-sound path async?)
(let ([s (as-objc-allocation (let ([s (as-objc-allocation
(tell (tell MySound alloc) (tell (tell RacketSound alloc)
initWithContentsOfFile: #:type _NSString (path->string initWithContentsOfFile: #:type _NSString (path->string
(path->complete-path path)) (path->complete-path path))
byReference: #:type _BOOL #t))] byReference: #:type _BOOL #t))]

View File

@ -41,7 +41,7 @@
(define order_content_first (function-ptr order-content-first (define order_content_first (function-ptr order-content-first
(_fun #:atomic? #t _id _id _id -> _int))) (_fun #:atomic? #t _id _id _id -> _int)))
(define-objc-class MyTabView NSTabView (define-objc-class RacketTabView NSTabView
#:mixins (FocusResponder KeyMouseResponder CursorDisplayer) #:mixins (FocusResponder KeyMouseResponder CursorDisplayer)
[wxb] [wxb]
(-a _void (tabView: [_id cocoa] didSelectTabViewItem: [_id item-cocoa]) (-a _void (tabView: [_id cocoa] didSelectTabViewItem: [_id item-cocoa])
@ -49,7 +49,7 @@
(when (and wx (send wx callbacks-enabled?)) (when (and wx (send wx callbacks-enabled?))
(queue-window*-event wxb (lambda (wx) (send wx do-callback))))))) (queue-window*-event wxb (lambda (wx) (send wx do-callback)))))))
(define-objc-class MyPSMTabBarControl PSMTabBarControl (define-objc-class RacketPSMTabBarControl PSMTabBarControl
#:mixins (FocusResponder KeyMouseResponder CursorDisplayer) #:mixins (FocusResponder KeyMouseResponder CursorDisplayer)
[wxb] [wxb]
(-a _void (tabView: [_id cocoa] didSelectTabViewItem: [_id item-cocoa]) (-a _void (tabView: [_id cocoa] didSelectTabViewItem: [_id item-cocoa])
@ -66,7 +66,7 @@
block-mouse-events) block-mouse-events)
(define tabv-cocoa (as-objc-allocation (define tabv-cocoa (as-objc-allocation
(tell (tell MyTabView alloc) init))) (tell (tell RacketTabView alloc) init)))
(define cocoa (if (not (memq 'border style)) (define cocoa (if (not (memq 'border style))
(as-objc-allocation (as-objc-allocation
(tell (tell NSView alloc) init)) (tell (tell NSView alloc) init))
@ -75,7 +75,7 @@
(define control-cocoa (define control-cocoa
(and (not (memq 'border style)) (and (not (memq 'border style))
(let ([i (as-objc-allocation (let ([i (as-objc-allocation
(tell (tell MyPSMTabBarControl alloc) (tell (tell RacketPSMTabBarControl alloc)
initWithFrame: #:type _NSRect (make-NSRect (make-NSPoint 0 0) initWithFrame: #:type _NSRect (make-NSRect (make-NSPoint 0 0)
(make-NSSize 200 22))))]) (make-NSSize 200 22))))])
(tellv cocoa addSubview: i) (tellv cocoa addSubview: i)