davidbures, to swift
@davidbures@mstdn.social avatar

Folks, have you had any success in merging the new Strings catalog in Xcode 15?

A nice contributor translated Cork into Spanish. Unfortunately, they didn’t use the correct branch. The main branch had a few changes to the Strings catalog.

Now I have 500 unresolvable merge conflicts.

What can I do? 😢

#macdev #swift #xcode

davidbures, to swift
@davidbures@mstdn.social avatar

OH MY GOD I CAN'T BELIEVE I FINALLY FIGURED IT OUT!! The next Cork release will be fucking EPIC

(Cork now supports packages that require sudo during install/uninstall)

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

A demo showing new support for packages requiring sudo in Cork

jonathantrott,
@jonathantrott@mastodon.au avatar

@davidbures Seems to have got stuck afterwards though....

davidbures,
@davidbures@mstdn.social avatar

@jonathantrott That strange, did you try any other package? I know the zulu JDKs and Microsoft teams also require sudo

davidbures, to swift
@davidbures@mstdn.social avatar

Has anyone here succeeded in setting up jekyll-apple-help to generate help books for macOS? This project: https://github.com/chuckhoupt/jekyll-apple-help

I wanted to use it to create a help book for Cork, but I'm having some major problems setting it up, and the guide is very hard to follow.

If anyone managed to set it up, would you be willing to help me? It would help a lot 😊

#macdev #swift #Apple

below, to random German
@below@mastodon.social avatar

No more Slack Channels for ?

totzek,
@totzek@mastodon.social avatar

@below They are moving to Teams

below,
@below@mastodon.social avatar

@totzek 😂 Funny joke … IT IS A JOKE, YES?

davidbures, to swift
@davidbures@mstdn.social avatar

While implementing the package previews, I ran across one state that Cork didn't have covered yet: when an app is already installed outside of Homebrew, and you try to install the Homebrew version.

Instead of getting stuck, you now get this status.

davidbures, to swift
@davidbures@mstdn.social avatar

Today, I merged the basic support for Shortcuts into mainline Cork. After that, I decided to take on another challenge

I thought it would be cool to be able to see detailed info about a package before you install it. This feature actually used to be in Cork back in 2022! But I had to remove it… until now!

It's far from complete, but I'm doing my best

Very old package preview from 2022

davidbures, to random
@davidbures@mstdn.social avatar

I have a question for old school macOS devs:

Is there a built-in way to create these wizard windows? I've seen them in a lot of the older built-in macOS apps and always wondered how they were made 🤔

#macOSDev #macdev

mackuba, to random
@mackuba@martianbase.net avatar

question: if I have a main storyboard set in Info.plist, and an initial (entry point) window controller in that storyboard (with "single presentation"), so like in the Mac app Xcode template, the storyboard automatically creates the window controller and its window and displays it; can I get a reference to that controller from AppDelegate somehow? (Calling instantiateInitialController creates a second window controller for some reason…) 🤨

mackuba,
@mackuba@martianbase.net avatar

@kaiengelhardt hmm… I guess so 🤔

mackuba,
@mackuba@martianbase.net avatar

@nemesisprime and someone else suggested that also turning off the initial controller flag and instantiating it manually would work too

mackuba, to random
@mackuba@martianbase.net avatar

Oh wow… someone on StackOverflow recommended to use this for an animation; available in iOS since 3.1, on macOS added only in Sonoma 😳 #MacDev

ddenis,
@ddenis@mastodon.social avatar

@mackuba to clarify - not just a timer every 0.1s that updated the view with animations (to smooth out discreet 100ms ticks)? Ie not simply .withAnimation/UIView.animate/NSAnimationContex?

mackuba,
@mackuba@martianbase.net avatar

@ddenis plain Timer (NSTimer) called every 0.1s which just sets progressBar.doubleValue to a higher value, without NSAnimationContext etc.

It seems to animate by itself (it doesn't just jump instantly to the new position), but even if I set the timer interval to e.g. 0.1s or 0.05s, the animation moves in steps - seems like it's doing about 4 moves per second even with a small timer interval.

davidbures, to swift
@davidbures@mstdn.social avatar

Update on Cork Shortcuts support:

I have added a shortcut for refreshing packages. Next step, I'll see if I can add a separate button to Cork itself for only refreshing packages without updating them!

(also, does anyone know why Shortcuts is showing the key for each LocalizedStringResource instead of the actual string? 🤔 see pic #2 for code)

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

Image of code

mattiem,
@mattiem@mastodon.social avatar

@davidbures I’d try it outside of the AppIntent context to try to eliminate some variables. I’ve never used that type anywhere else.

davidbures,
@davidbures@mstdn.social avatar

@mattiem Using it outside the intent works fine 😅 I'll give it a day or two, maybe it will start working on its own

davidbures, to swift
@davidbures@mstdn.social avatar

Has anyone encountered this error before? I'm trying to test widgets, but the simulator doesn't start at all. I get no errors, not warnings, nothing in the console apart from the URL of the widget extension… it's weird. And Google is also not helping 🤔

Code is here: https://github.com/buresdv/Cork/tree/main.widgets/Widgets

#swift #swiftui #macdev

davidbures, to swift
@davidbures@mstdn.social avatar

To recap what I got working today in Cork (but I'm not promising that it's gonna be in the next release!):

  • Added three Shortcuts: Get installed Formulae, Casks or all Packages
  • "Get installed Formulae" allows you go only limit it to only manually installed packages. For some reason, doing this in the "Get installed Packages" crashes it even though it's the same system

We'll see what's gonna be next!

image/jpeg

davidbures, to swift
@davidbures@mstdn.social avatar

I'm not promising anything for the next version of Cork just yet, but I'm trying to cook here…

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

davidbures,
@davidbures@mstdn.social avatar

Oh yeah it's all coming together now

#swift #macdev #CorkApp

davidbures, to swift
@davidbures@mstdn.social avatar

How would you go about implementing a popup search menu like this? :think_bread:

Suppose I have a NSSearchField and want to make such popup menu to let the user choose some details about their search - for example, if they want to search by a package's name or description.

Or would there be a more appropriate, and completely different, solution? What do you think?

#swift #swiftui #macdev

Bryan,
@Bryan@macaw.social avatar
davidbures,
@davidbures@mstdn.social avatar

@Bryan The main problem is showing that menu with the options. I'm not sure how to do that in SwiftUI, but there might be a way in AppKit that I'm not aware of since I'm using NSSearchField

CorkApp, to swift
@CorkApp@mstdn.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • cisconetworking
  • khanakhh
  • mdbf
  • magazineikmin
  • modclub
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • Durango
  • tacticalgear
  • megavids
  • ngwrru68w68
  • everett
  • tester
  • cubers
  • normalnudes
  • thenastyranch
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • lostlight
  • All magazines