home.social

#pyobjc — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pyobjc, aggregated by home.social.

  1. I got so fed up with #elgato's #streamdeck app that I decided to hack my own with #pyobjc, blackjack and... #Copilot. Once I've implemented a couple more things (not sure I need pages, but generating icons from SFSymbol and awareness of foreground app seem useful) I'll put it up on GitHub.

  2. Does anyone out there on the fediverse happen to know how I could embed Sparkle in a #macOS #Python application using #PyObjC and packaged with #Py2App ? I gather that the --frameworks option is involved, but … is it just as simple as downloading the bundle from github.com/sparkle-project/Spa and then pointing the `--frameworks` option at the `.framework` dir in there? If I do that, what is the right incantation to get some pyobjc bindings packaged and finding it both in dev and in dist?

  3. This just keeps printing "authorized: True", "focused: 0" regardless of what I do with my focus status and I am sure it has something to do with some dumb entitlement or Info.plist configuration and some days I kinda understand the impulse to throw your Macbook in a lake and run Slackware on a 10-year-old ThinkPad instead gist.github.com/glyph/28546aac #python #pyobjc

  4. I've been trying not to get too infrastructure-y (it's a character flaw) with this app, but the process of manually rebuilding NSTableViewDataSource implementations in #PyObjC against each list, and NSKeyValueObserving implementations against every object in those lists, in my nominally cross-platform #Python model eventually got too tedious, and I'm glad I went to go generalize this. It was a fun exercise and it should give me a repeatable idiom to bridge to KVO.

    github.com/glyph/Pomodouroboro

  5. I cannot describe just how sick of writing this blog post I am, but it's done now, and I am going to hopefully just run this tool every few days for the next six months and *never think about this again*

    blog.glyph.im/2023/03/py-mac-a

    #python #pyobjc #py2app #programming #macos

  6. Consider this a very soft launch since I have no idea if anyone else can realistically run it yet, but I have managed to jam all of the horrible domain knowledge I've accrued about making an app bundle built with Python and py2app *actually* sign and notarize all the way for 3rd party macOS app distribution. I've now tested it with 2 very different apps and fixed a bunch of issues.

    pypi.org/project/encrust/

    #python #pyobjc

  7. Here's the first VERY VERY PRERELEASE quality build of my time-blindness mitigation tool for macOS. (Linux & Windows ports will come eventually.)

    While the app *should* be vaguely usable now — I use it daily — I mostly want to know if it literally even launches on anybody else's computer. There are a lot of potential problems in the build process.

    github.com/glyph/Pomodouroboro

    #adhd #macos #python #pyobjc

  8. @mikeymikey hey okay let’s talk about #pyobjc!

    How do you integrate third-party frameworks like cocoapods into a primarily python pyobjc project, i.e. one built with py2app, not xcodebuild?

  9. Hooray, looks like the thing where Xcode’s interface builder couldn’t read Python/pyobjc class statements any more was just a bug, and it has been fixed. Finally I can toss this janky shim-generator nonsense script. Nice to know it’s still (extremely tacitly) supported.

    Can’t put an annotation on the same line as an IBOutlet though. I wonder if the implementation is just a regex in there somewhere …

    #python #pyobjc #macos #programming #xcode

  10. Wait really? A network full of this many nerds and nobody but me is out here talking about #pyobjc?

    Mastodon - I am -ashamed- of you :blobfoxglare:

  11. #introduction time - ahoy, I'm a fruitco eng, (formerly Dropboxer and repenting FBer) focused on all things non-consumer (❤️ #macOS and #Mac ❤️)

    My github gists are full of horrible hacks and I've written ObjC bridging code in at least 5 or 6 languages at this point. And if you don't stop me, I'll friggin' do it again. I know more about #python, ctypes, and #pyobjc than is legally allowed.

    I inhale #scifi and books. I have no shelf control. Pets outnumber humans 6 to 1 in this household. Say hi