• 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: mmalcolm crawford <email@hidden>
  • Date: Wed, 1 Mar 2006 11:54:29 -0800


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

[textField bind: @"value"
toObject: controller
withKeyPath: @"selection.name"
options: nil]
// try it out:
NSString* newName = @"bar";
[textField setStringValue: newName];
STAssertEqualObjects( [person valueForKey:@"name"], newName, nil); // this fails

<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Concepts/Troubleshooting.html#//apple_ref/doc/uid/ TP40002148-182467>


mmalc

_______________________________________________
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>)

  • Prev by Date: Retrieving sorted array from NSTreeController?
  • Next by Date: RE: [Newbie] Creating a timeline view
  • 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