• 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
NSTextfield value doesn't update binding when set programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextfield value doesn't update binding when set programmatically


  • Subject: NSTextfield value doesn't update binding when set programmatically
  • From: Damian Terentiev <email@hidden>
  • Date: Fri, 11 Jan 2008 22:28:38 +0300

Hi again!
Please, excuse me in advance, if it is a yet another stupid question, but I'm completely lost once more.
I have an NSTextField with a value bound to an NSArrayController. If a user edits the value, everything works OK. But when I try to do the same thing programmatically with
[aTextField setValue:aString forKey:@"value"]
I get an exception:
[<NSTextField 0x802e4d0a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key value.
Seems like I'm missing something…


Yours,
Damian_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextfield value doesn't update binding when set programmatically
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: beginSheet:ModalForWindow:modalDelegate:didEndSelector:contextInfo: in Leopard
  • Next by Date: Re: NSTextfield value doesn't update binding when set programmatically
  • Previous by thread: Re: beginSheet:ModalForWindow:modalDelegate:didEndSelector:contextInfo: in Leopard
  • Next by thread: Re: NSTextfield value doesn't update binding when set programmatically
  • Index(es):
    • Date
    • Thread