On Mon, 2 Jan 2006 14:49:49 -0500, andrew remuzzi <email@hidden> said:
>I am using Xcode 2.0 with 10.4.3
Probably a bad idea. The current version of Xcode is 2.2, and keeping your
version of Xcode coordinated with the version of your system is pretty
important.
>on awake from nib theObject
> tell window of theObject
> set the contents of text field "X" to "0"
> set the contents of text field "y" to "0"
> updateDisplay(theObject)
> end tell
>end awake from nib
>
>the error i get is
>
>"Can't make contents of text field "x" of window of window id 1 into
>type reference. (-1700)"
>
>if i drop the tell window line i get
>
>"Can't make contents of text field "x" into type reference. (-1700)"
>
>later in the script in response to a button click this line works fine
One obvious hypothesis would be that this is because at the time the button
is clicked, all the pieces are in place (the text field, the window, etc.),
but very early in the process of assembling the interface from the nib, this
might not be true. In other words, perhaps "awake from nib" is just too
early in the game. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden
This email sent to email@hidden