• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
text fields with Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

text fields with Xcode


  • Subject: text fields with Xcode
  • From: andrew remuzzi <email@hidden>
  • Date: Mon, 2 Jan 2006 16:04:08 -0500

I have a simple calculation application i am trying to get working but i cannot seem to "set text fields" to a default value.

I am using Xcode 2.0 with 10.4.3


here is the relevant code

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

on clicked theObject
tell window of theObject
try


set the contents of text field "X" to theXvar
on error
set the contents of text field "X" to "error"
end try
end tell
end clicked


anyone have amy insight on what i am doing wrong ?


thanks 


stimpy
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Is there a way to keep a floating window open?
  • Next by Date: Re: hdiutil burn
  • Previous by thread: Re: Is there a way to keep a floating window open?
  • Next by thread: Re: hdiutil burn
  • Index(es):
    • Date
    • Thread