• 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
can't get stringvalue from TextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can't get stringvalue from TextField


  • Subject: can't get stringvalue from TextField
  • From: Phillip Smith <email@hidden>
  • Date: Wed, 05 May 2010 11:14:32 +1200

Hi Folks i have a problem
I can't get
 set textFieldValue to textField's stringvalue()
to work
I have the part one project
http://macscripter.net/viewtopic.php?id=30274
and it runs fine
I have tried copying and pasting the code into my project and it does not work

I have modified the code for testing

on setTextViewFromTextField_(sender)
		textField's setStringValue_("hello") -- this works
		textView's setString_("this is a test")-- this works
		set mytext to textField's stringvalue() -- this doesn't
		say mytext
	end setTextViewFromTextField_

I get  this error
2010-05-05 11:10:53.726 test ASOBJC[1025:903] -[NSTextField stringvalue]: unrecognized selector sent to instance 0x1584b30
2010-05-05 11:10:53.736 test ASOBJC[1025:903] *** -[test_ASOBJCAppDelegate setTextViewFromTextField:]: -[NSTextField stringvalue]: unrecognized selector sent to instance 0x1584b30 (error -10000)

I  have noticed that typing stringValue is converted to stringvalue

by the way I can't get debugger to work in applescript

running 10.6.3



Phillip Smith
Applied Evolution
mob 021-363-869
email@hidden

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: can't get stringvalue from TextField
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: The Future (ASS, ASOC, Cocoa + AS)
  • Next by Date: Re: can't get stringvalue from TextField
  • Previous by thread: Re: The Future (ASS, ASOC, Cocoa + AS)
  • Next by thread: Re: can't get stringvalue from TextField
  • Index(es):
    • Date
    • Thread