• 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
Re: Programmatically setting the value of a bound TextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically setting the value of a bound TextField


  • Subject: Re: Programmatically setting the value of a bound TextField
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 1 Mar 2006 11:23:03 -0600


On Mar 1, 2006, at 10:44 AM, Felix Franz wrote:


On Mar 1, 2006, at 4:22 PM, Ricky Sharp wrote:

On Mar 1, 2006, at 8:29 AM, Felix Franz wrote:

[textField setStringValue: newName];

Instead of using setStringValue: here, try using setValue: instead. After all, you are binding to "value". setValue: should have in its implementation the steps to notify bound objects of the change.



Thanks for the tip, but unfortunately NSTextField does not respond to setValue: ...

You're right. What I should have said was setObjectValue: Hopefully that will work.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

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


References: 
 >Programmatically setting the value of a bound TextField (From: Felix Franz <email@hidden>)
 >Re: Programmatically setting the value of a bound TextField (From: Ricky Sharp <email@hidden>)
 >Re: Programmatically setting the value of a bound TextField (From: Felix Franz <email@hidden>)

  • Prev by Date: Re: NSTextView custom cursor
  • Next by Date: Reading raw jpeg data
  • Previous by thread: Re: Programmatically setting the value of a bound TextField
  • Next by thread: Re: Programmatically setting the value of a bound TextField
  • Index(es):
    • Date
    • Thread