open window with parameters?

Hi,

I want to open a new window from my ASS app and pass it a value.
I can set a value by

set contents of text field "myField" of window "newWindow" to...

, but this seems to happen only after the window is fully displayed. I have a handler in the new window’s on awakeFromNIB handler that should process the value passed from the calling app. When I use the method shown above the field can be accessed but it is empty.

Is there a way to use something like

open window "newWindow" with parameter myValue

? And if so, how do I access this parameter in the newly opened window?

Any hint appreciated,
jaco

Hi jaco,

I use the “on will open” handler for the first scenario. I just say:

on will open theObject
if the name of theObject is "prefsPanel" then
set contents of text field "delayTextField" of window "prefsPanel" to tempScreenshotDelay
end if
end on will open

(Of course, I have that handler check-marked for the “prefsPanel” window in Interface Builder).

-Joe