• 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 binding (feeling like a newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField value binding (feeling like a newbie)


  • Subject: NSTextField value binding (feeling like a newbie)
  • From: Jeff LaMarche <email@hidden>
  • Date: Tue, 18 Mar 2008 17:33:14 -0400

Working with IB3 to try and get my bearings again, and I know I'm doing something stupid here. I have an NSTextField inside an NSScrollView created in IB3. I have bound the value binding of the NSTextField to an NSString called feedback, exposed as an Objective-C 2.0 property,declared like this:

@property (retain, nonatomic) NSMutableString *feedback;

In my implementation, use @synthesize to have it build the accessors and mutators. The binding is set to Continuously Updates Values, and is not editable, and has rich text turned off. If I run my program, and make changes to the string (feedback), those are not reflected in the text field even though I can tell through the debugger that the string is changing.

I suspect I'm doing something really stupid, but I'm stumped, and nothing in the archives pointed me in the right direction. The Objective-C 2.0 book seems to indicate that properties are KVC compliant, but maybe I missed something?

Any thoughts would be much appreciated.

Thanks,
Jeff
_______________________________________________

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 binding (feeling like a newbie)
      • From: Quincey Morris <email@hidden>
    • Re: NSTextField value binding (feeling like a newbie)
      • From: Jeff LaMarche <email@hidden>
  • Prev by Date: NSTableView double click binding and clickedRow
  • Next by Date: Re: NSTextField value binding (feeling like a newbie)
  • Previous by thread: NSTableView double click binding and clickedRow
  • Next by thread: Re: NSTextField value binding (feeling like a newbie)
  • Index(es):
    • Date
    • Thread