{"id":36370,"date":"2022-06-28T17:05:45","date_gmt":"2022-06-28T21:05:45","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=36370"},"modified":"2022-06-30T13:52:19","modified_gmt":"2022-06-30T17:52:19","slug":"creating-custom-extension-points-for-mac-apps-with-extensionkit","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/06\/28\/creating-custom-extension-points-for-mac-apps-with-extensionkit\/","title":{"rendered":"Creating Custom Extension Points for Mac Apps With ExtensionKit"},"content":{"rendered":"<p><a href=\"https:\/\/rambo.codes\/posts\/2022-06-27-creating-custom-extension-points-with-extensionkit\">Guilherme Rambo<\/a> (<a href=\"https:\/\/twitter.com\/_inside\/status\/1541523082761961476\">tweet<\/a>):<\/p>\n<blockquote cite=\"https:\/\/rambo.codes\/posts\/2022-06-27-creating-custom-extension-points-with-extensionkit\"><p>We&rsquo;ve been able to develop extensions for Apple&rsquo;s apps and operating systems for a while, but Apple never offered a native way for third-party apps to provide custom extension points that other apps can take advantage of.<\/p><p>With ExtensionFoundation and ExtensionKit on macOS, now we can.<\/p><p>However, Apple&rsquo;s documentation lacks crucial information on how to use these new APIs (FB10140097), and there were no WWDC sessions or sample code available in the weeks following the keynote.<\/p><p>Thanks to some trial and error, and some help from other developers, I was able to put together <a href=\"https:\/\/github.com\/insidegui\/TextTransformer\">some sample code<\/a> demonstrating how one can use ExtensionFoundation\/ExtensionKit to define custom extension points for their Mac apps.<\/p><\/blockquote>\n\n<p id=\"creating-custom-extension-points-for-mac-apps-with-extensionkit-update-2022-06-30\">Update (2022-06-30): <a href=\"https:\/\/take.surf\/2022\/06\/28\/don-t-overextend-yourself\">Jesper<\/a>:<\/p>\n<blockquote cite=\"https:\/\/take.surf\/2022\/06\/28\/don-t-overextend-yourself\"><p>This is not the first time I&rsquo;m getting these vibes from Apple frameworks; IOSurface and its ilk has been like that, and the sessions on <a href=\"https:\/\/developer.apple.com\/documentation\/screencapturekit\">ScreenCaptureKit<\/a> were almost comical at their circuitous avoidance of describing what you actually <em>do<\/em> with the audio\/video buffers you are handed.<\/p><p>[&#8230;]<\/p><p>Apple is big enough that it&rsquo;s time to grow beyond the scrappy image, respect developers both inside and outside the company and allocate time and opportunity to move beyond <a href=\"https:\/\/www.caseyliss.com\/2020\/11\/10\/on-apples-pisspoor-documentation\">&ldquo;no overview available&rdquo;<\/a>.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Guilherme Rambo (tweet): We&rsquo;ve been able to develop extensions for Apple&rsquo;s apps and operating systems for a while, but Apple never offered a native way for third-party apps to provide custom extension points that other apps can take advantage of.With ExtensionFoundation and ExtensionKit on macOS, now we can.However, Apple&rsquo;s documentation lacks crucial information on how [&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":"2022-06-28T21:05:47Z","apple_news_api_id":"a01bdc18-989d-465c-bf28-a65b8c496672","apple_news_api_modified_at":"2022-06-30T17:52:21Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AoBvcGJidRly_KKZbjElmcg","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":[905,30,2223,74,71],"class_list":["post-36370","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-extensions","tag-mac","tag-macos-13-ventura","tag-opensource","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36370","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=36370"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36370\/revisions"}],"predecessor-version":[{"id":36383,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36370\/revisions\/36383"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=36370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=36370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=36370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}