Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rossipoo

macrumors regular
Original poster
Jun 7, 2009
109
0
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.
 
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.