On Sat, Jun 28, 2008 at 6:24 PM, Ben Trumbull <[EMAIL PROTECTED]> wrote: >> Which is, frankly, a bit goofy and, thus, the primary reason why I >> would avoid using -valueForKey: on a dictionary. > > Amen. It's slower, and people reading your code can get very confused.
Then is there a recommended way of binding to the contents of dictionaries? For example, suppose I have an NSObjectController representing some object, which has an NSDictionary (let's say it's called "attributes") as a property. Then can I bind to the value stored under a key in that dictionary? Say I want to bind a text field's value to whatever is stored under the key "name" in the "attributes" dictionary. The intuitive (to me) thing to do is bind to the NSObjectController, controller key "selection", model key path "attributes.name". But that won't work. Is there a good solution? Owen _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]