How do I make it so editing text fields updates display as I type?

Discussion in 'Mac Programming' started by printz, May 4, 2013.

  1. macrumors regular

    Joined:
    Dec 23, 2012
    Messages:
    216
    #1
    It seems that text fields only do their actions when I press Return or focus out of them. Then I saw a simple binding example (a concept I still don't master) and the bound objects still only updated when I focused out. Yet I see lots of other applications where actions happen as soon as I type. How do I do it? By Key-Value Observing? I tried to observe NSTextField's stringValue, but it didn't work.
     
  2. macrumors 6502

    Joined:
    May 29, 2011
    Messages:
    276
    Location:
    Littleton, Colorado, USA
    #2
  3. macrumors regular

    Joined:
    Dec 23, 2012
    Messages:
    216
    #3
    Thanks! I'll try it. It wasn't quite obvious, as I was bumping into other similarly named structures, which did nothing.
     

Share This Page