{"id":6484,"date":"2012-11-02T16:03:34","date_gmt":"2012-11-02T21:03:34","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=6484"},"modified":"2012-11-02T16:04:43","modified_gmt":"2012-11-02T21:04:43","slug":"a-source-list-with-bindings","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/11\/02\/a-source-list-with-bindings\/","title":{"rendered":"A Source List With Bindings"},"content":{"rendered":"<p><a href=\"http:\/\/amyworrall.com\/post\/34833120060\/a-source-list-with-bindings\">Amy Worrall<\/a>:<\/p>\n<blockquote cite=\"http:\/\/amyworrall.com\/post\/34833120060\/a-source-list-with-bindings\"><p>I wanted to use bindings, so that the UI will always update as new objects are created. The problem is, I couldn&rsquo;t bind to my Core Data entities, because the NSTreeController expects just one kind of object throughout its tree. Also, my groups and my static rows aren&rsquo;t in the database.<\/p><\/blockquote>\n<p>I&rsquo;m not convinced that it makes sense to use Cocoa bindings in this situation, but if you want to do so she explains the non-obvious way that you can make it work.<\/p>","protected":false},"excerpt":{"rendered":"<p>Amy Worrall: I wanted to use bindings, so that the UI will always update as new objects are created. The problem is, I couldn&rsquo;t bind to my Core Data entities, because the NSTreeController expects just one kind of object throughout its tree. Also, my groups and my static rows aren&rsquo;t in the database. I&rsquo;m not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,199,30,71],"class_list":["post-6484","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-bindings","tag-mac","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=6484"}],"version-history":[{"count":4,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6484\/revisions"}],"predecessor-version":[{"id":6488,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/6484\/revisions\/6488"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=6484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=6484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=6484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}