{"id":24367,"date":"2019-02-20T17:12:55","date_gmt":"2019-02-20T22:12:55","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=24367"},"modified":"2019-02-20T17:12:55","modified_gmt":"2019-02-20T22:12:55","slug":"implementing-netnewswire-search","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2019\/02\/20\/implementing-netnewswire-search\/","title":{"rendered":"Implementing NetNewsWire Search"},"content":{"rendered":"<p><a href=\"http:\/\/inessential.com\/2019\/02\/19\/netnewswire_status_february_19_2019\">Brent Simmons<\/a>:<\/p>\n<blockquote cite=\"http:\/\/inessential.com\/2019\/02\/19\/netnewswire_status_february_19_2019\">\n<p>When a search starts, swap in a separate timeline and detail view, do the search, and then show the results in these swapped-in views. When the user ends searching, swap those views out, and swap back in the regular timeline and detail views.<\/p>\n<p>[&#8230;]<\/p>\n<p>If you look at other apps &mdash; Mail, for example &mdash; it appears they use solution #1, and state restoration is not always instant. I want it to be instant.<\/p>\n<p>[&#8230;]<\/p>\n<p>In the case of the search feature, I spent more time just <em>thinking<\/em> about how I want to do the UI than on the actual search-in-the-database implementation. And then there&rsquo;s the UI work itself, which absolutely dwarfs the database work.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Brent Simmons: When a search starts, swap in a separate timeline and detail view, do the search, and then show the results in these swapped-in views. When the user ends searching, swap those views out, and swap back in the regular timeline and detail views. [&#8230;] If you look at other apps &mdash; Mail, for [&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":"2019-02-20T22:12:58Z","apple_news_api_id":"60f92d25-3d38-4df2-8f75-aa6b616271f4","apple_news_api_modified_at":"2019-02-20T22:13:00Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AYPktJT04TfKPdaprYWJx9A","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":[2],"tags":[30,32,1609,392,343],"class_list":["post-24367","post","type-post","status-publish","format-standard","hentry","category-technology","tag-mac","tag-macapp","tag-macos-10-14","tag-netnewswire","tag-search"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24367","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=24367"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24367\/revisions"}],"predecessor-version":[{"id":24368,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/24367\/revisions\/24368"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=24367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=24367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=24367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}