home *** CD-ROM | disk | FTP | other *** search
- (define (d) (tell (tell NXApp 'delegate) 'currentDocument))
- (define (el) (tell (d) 'printEditlist) #t)
- (define (cs) (tell (d) 'printChangeStack) #t)
- (define (f) (tell (d) 'printForeignInclusion) #t)
- (define (u) (tell (d) 'printDerefd) #t)
- (define (cut a b) (tell (d) 'cut:: a b) #t)
- (define (delete a b) (tell (d) 'delete:: a b) #t)
- (define (paste a b) (tell (d) 'paste:: a b) #t)
- (define (copy a b) (tell (d) 'copy:: a b) #t)
- (define (play a b) (tell (d) 'play:: a b) #t)
- (define (undo) (tell (d) 'undoSegment: (make-pointer 0 'id)) #t)
- (define (redo) (tell (d) 'redoSegment: (make-pointer 0 'id)) #t)
-
- (define (List->list List)
- (letrec ((count (tell List 'count))
- (loop (lambda (n)
- (if (= n count)
- '()
- (cons (tell List 'objectAt: n) (loop (+ n 1)))))))
- (loop 0)))
-
- (define (get-SIDView n)
- (let ((wl (List->list (tell NXApp 'windowList))) (w))
- (set! w (list-ref wl (- (length wl) 1 n)))
- (tell (car (List->list
- (tell (car (List->list (tell (tell w 'contentView) 'subviews)))
- 'subviews))) 'docView)))
-