{"id":32858,"date":"2021-06-15T16:07:39","date_gmt":"2021-06-15T20:07:39","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=32858"},"modified":"2021-06-15T16:07:39","modified_gmt":"2021-06-15T20:07:39","slug":"modifying-nstextlists-in-code","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2021\/06\/15\/modifying-nstextlists-in-code\/","title":{"rendered":"Modifying NSTextLists in Code"},"content":{"rendered":"<p><a href=\"https:\/\/coppiceapp.com\/blog\/tech_talk_adding_lists_to_coppice\">Martin Pilkington<\/a>:<\/p>\n<blockquote cite=\"https:\/\/coppiceapp.com\/blog\/tech_talk_adding_lists_to_coppice\">\n<p>By setting these <code>NSTextLists<\/code>, you can give <code>NSTextView<\/code> enough information to let users make changes to the list through regular text editing. However, <code>NSTextView<\/code> will not actually respond to any changes you make in code (for example, adding a list). That requires a <strong>LOT<\/strong> more work&#8230;<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Martin Pilkington: By setting these NSTextLists, you can give NSTextView enough information to let users make changes to the list through regular text editing. However, NSTextView will not actually respond to any changes you make in code (for example, adding a list). That requires a LOT more work&#8230;<\/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":"2021-06-15T20:07:43Z","apple_news_api_id":"3e70f593-7f3c-4441-8afc-8123a2a9baaf","apple_news_api_modified_at":"2021-06-15T20:07:43Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/APnD1k388REGK_IEjoqm6rw","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,30,1891,71],"class_list":["post-32858","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-mac","tag-macos-11-0","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/32858","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=32858"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/32858\/revisions"}],"predecessor-version":[{"id":32859,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/32858\/revisions\/32859"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=32858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=32858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=32858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}