[F-Script-talk] How do you print text to the console while running a Cocoa script?
Brought to you by:
pmougin
From: Philippe de R. <phi...@ww...> - 2004-02-20 12:38:50
|
For instance, scrWidth := NSScreen mainScreen visibleFrame size width. scrHeight := NSScreen mainScreen visibleFrame size height. winWidth := 400. winHeight := 200. winX := (scrWidth / 2) - (winWidth / 20). winY := (scrHeight / 2) - (winHeight / 20). 'scrWidth's value is ' ++ scrWidth. "This does not appear on stdout" "Instantiate and configure a window" window := NSWindow alloc initWithContentRect:(winX<>winY extent:winWidth<>winHeight) styleMask:NSTitledWindowMask + NSClosableWindowMask+ NSMiniaturizableWindowMask + NSResizableWindowMask backing:NSBackingStoreBuffered defer:NO. (...) the 'scrWidth's value is ' ++ scrWidth. command above does not work. Many thanks. Philippe de Rochambeau |