{"id":1066,"date":"2005-07-06T08:25:17","date_gmt":"2005-07-06T12:25:17","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/2005\/07\/06\/text-view-bindings-and-panther\/"},"modified":"2005-07-06T08:25:17","modified_gmt":"2005-07-06T12:25:17","slug":"text-view-bindings-and-panther","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2005\/07\/06\/text-view-bindings-and-panther\/","title":{"rendered":"Text View Bindings and Panther"},"content":{"rendered":"<p>\r\nToday&rsquo;s <a href=\"http:\/\/www.macjournals.com\/mdj\/\">MDJ<\/a> reminded me of that weird regression (fixed in version 2.6.3) where <a href=\"http:\/\/c-command.com\/dropdmg\">DropDMG<\/a>&rsquo;s license agreement editor didn&rsquo;t work on Mac OS X 10.3. I had rewritten the editor to use Cocoa bindings, as this improved performance and simplified the code. Unfortunately, I used <code>NSTextView<\/code>&rsquo;s <code>attributedString<\/code> binding. Despite what the <a href=\"http:\/\/developer.apple.com\/documentation\/Cocoa\/Reference\/CocoaBindingsRef\/BindingsText\/NSTextView.html#\/\/apple_ref\/doc\/uid\/NSTextView\">documentation<\/a> and Interface Builder&rsquo;s compatibility checker say, this binding is only available on Mac OS X 10.4. Of course, it&rsquo;s still my fault for not covering this aspect of the agreement editor in my unit tests. But let this be a lesson: if you want to bind a text view on Panther, use the <code>data<\/code> binding.\r\n<\/p>","protected":false},"excerpt":{"rendered":"<p>Today&rsquo;s MDJ reminded me of that weird regression (fixed in version 2.6.3) where DropDMG&rsquo;s license agreement editor didn&rsquo;t work on Mac OS X 10.3. I had rewritten the editor to use Cocoa bindings, as this improved performance and simplified the code. Unfortunately, I used NSTextView&rsquo;s attributedString binding. Despite what the documentation and Interface Builder&rsquo;s compatibility [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","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":[],"class_list":["post-1066","post","type-post","status-publish","format-standard","hentry","category-programming-category"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1066","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=1066"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/1066\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=1066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=1066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=1066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}