Re: [ANN] PyObjC 5.0
Glyph <[email protected]> Thu, 20 Sep 2018 20:59:47 -0700
| Newsgroups | gmane.comp.python.apple,gmane.comp.python.pyobjc.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============4681163014997707355== Content-Type: multipart/alternative; boundary="Apple-Mail=_8C53F85D-D75C-4732-91E3-EA95C55D6A7B" --Apple-Mail=_8C53F85D-D75C-4732-91E3-EA95C55D6A7B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On Sep 18, 2018, at 1:22 PM, Ronald Oussoren via Pythonmac-SIG = <[email protected]> wrote: >=20 > PyObjC 5.0 is out Thanks again for your tireless (or at least apparently tireless) = maintenance, Ronald! > * Added bindings for the =E2=80=9CCarbonCore=E2=80=9D subframework of = the =E2=80=9CCoreServices=E2=80=9D framework. >=20 > Most APIs in this subframework are not available to Python, only those = APIs that are not deprecated and seem interesting are exposed. One thing I wondered about when I saw "carbon" here is that I wonder if = the APIs that could make = https://pythonhosted.org/pyobjc/examples/Cocoa/AppKit/HotKeyPython/index.h= tml = <https://pythonhosted.org/pyobjc/examples/Cocoa/AppKit/HotKeyPython/index.= html> are exposed again? The cautions that the relevant Carbon APIs = require 32-bit mode are inaccurate; = https://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-in-cocoa.htm= l = <https://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-in-cocoa.ht= ml> explains that they're still supported in sandboxed Mac App Store = apps, so they're just poorly documented, not deprecated. (It seems that = there's never been a proper Cocoa replacement for this functionality, = just a couple of popular wrappers floating around out there...) This is something I have wanted to do in Python many times, but never = quite badly enough to figure out all the build gymnastics required to = get the bindings for https://github.com/shpakovski/MASShortcut = <https://github.com/shpakovski/MASShortcut> built and bundled with my = application. -glyph P.S.: speaking of build gymnastics, does anyone on this list happen to = have a way to use CocoaPods or something similar to pull in open source = Cocoa frameworks to a PyObjC application?= --Apple-Mail=_8C53F85D-D75C-4732-91E3-EA95C55D6A7B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div = class=3D"">On Sep 18, 2018, at 1:22 PM, Ronald Oussoren via = Pythonmac-SIG <<a href=3D"mailto:[email protected]" = class=3D"">[email protected]</a>> wrote:</div><div><blockquote = type=3D"cite" class=3D""><br class=3D""><div class=3D""><div = style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; line-break: = after-white-space;" class=3D""><b class=3D"">PyObjC 5.0 is out</b><br = class=3D""></div></div></blockquote><div><br class=3D""></div><div>Thanks = again for your tireless (or at least apparently tireless) maintenance, = Ronald!</div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: = space; line-break: after-white-space;" class=3D""><div class=3D""><div = class=3D""><div class=3D"">* Added bindings for the =E2=80=9CCarbonCore=E2= =80=9D subframework of the =E2=80=9CCoreServices=E2=80=9D framework.<= /div><div class=3D""><br class=3D""></div><div class=3D"">Most APIs in = this subframework are not available to Python, only those APIs = that are not deprecated and seem interesting are exposed.<br = class=3D""></div></div></div></div></div></blockquote><div><br = class=3D""></div><div>One thing I wondered about when I saw "carbon" = here is that I wonder if the APIs that could make <a = href=3D"https://pythonhosted.org/pyobjc/examples/Cocoa/AppKit/HotKeyPython= /index.html" = class=3D"">https://pythonhosted.org/pyobjc/examples/Cocoa/AppKit/HotKeyPyt= hon/index.html</a> are exposed again? The cautions that the = relevant Carbon APIs require 32-bit mode are inaccurate; <a = href=3D"https://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-in-c= ocoa.html" = class=3D"">https://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-i= n-cocoa.html</a> explains that they're still supported in sandboxed = Mac App Store apps, so they're just poorly documented, not deprecated. = (It seems that there's never been a proper Cocoa replacement for = this functionality, just a couple of popular wrappers floating around = out there...)</div><div><br class=3D""></div><div>This is something I = have wanted to do in Python many times, but never quite badly enough to = figure out all the build gymnastics required to get the bindings = for <a href=3D"https://github.com/shpakovski/MASShortcut" = class=3D"">https://github.com/shpakovski/MASShortcut</a> built and = bundled with my application.</div><div><br = class=3D""></div><div>-glyph</div><div><br class=3D""></div><div>P.S.: = speaking of build gymnastics, does anyone on this list happen to have a = way to use CocoaPods or something similar to pull in open source Cocoa = frameworks to a PyObjC application?</div></div></body></html>= --Apple-Mail=_8C53F85D-D75C-4732-91E3-EA95C55D6A7B-- --===============4681163014997707355== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Pythonmac-SIG maillist - [email protected] https://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG --===============4681163014997707355==--