PDA

View Full Version : IB bind to path with dots




rossipoo
Oct 19, 2010, 12:50 PM
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:@"highscore.name"] anywhere in code and see the expected output.



rossipoo
Oct 19, 2010, 01:17 PM
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?