IB bind to path with dots

Discussion in 'Mac Programming' started by rossipoo, Oct 19, 2010.

  1. rossipoo macrumors regular

    Jun 7, 2009
    I have a textfield I am binding to user defaults in IB. It works when the Model Key Path is a simple key "highscore" and defaults has a string in "highscore", however if I put a dictionary with a "name" into defaults instead, the binding "highscore.name" to the text field won't work.

    I can nslog [defaults valueForkeyPath:mad:"highscore.name"] anywhere in code and see the expected output.
  2. rossipoo thread starter macrumors regular

    Jun 7, 2009
    Okay, I found that if I bind manually with code in awakeFromNib, it works as expected, however I am still curious why it didn't work before, is this a bug in IB?

Share This Page