Posts

Post not yet marked as solved
3 Replies
94 Views
Has anyone else seen in Ventura B3 where you have a URL path as a source and you want to use the filename for that, aka lastPathComponent in a destination URL, so you have something like: let destinationURL = destinationDIrectory.appendingPathExtension(sourceURL.lastPathComponent) and lastPathComponent is a file name but what you get for destinationURL is: destinationDirectory.lastPathComponent instead of destinationDirectory/lastPathComponent or is it just me?
Posted Last updated
.
Post not yet marked as solved
2 Replies
141 Views
That's pretty much the post. How does one go about locking down window resizing for a mac app with swiftUI? (I've no intention of this running on anything but macOS, so I don't actually care how it will look on i(Pad)OS.) I've tried the width/height in the frame parameters, min/max width, etc. none of that worked.
Posted Last updated
.
Post not yet marked as solved
1 Replies
234 Views
Sorry about the title, it's kind of awkward. Basically, I have an ASOC app that I'd like to port to swift as a learning excercise. it's pretty straightforward, it grabs the computer name, local host name, and host name via the scutil --get operations and lets you change those via the --set. doing this in ASOC is dead simple, yay do shell script, and I mostly found a way to do it via NSAppleScript, but it feels very...awkward. Is there a better framework to use for getting and setting this info? thanks! john
Posted Last updated
.
Post not yet marked as solved
0 Replies
309 Views
is there any sample code showing how to put multiple controls in a tab for a macOS app? I have an app that I'd like to use as a basis for swiftUi work, but it's not "oh look, here's some scrolly things and it's all really iOS navigation". It's a macOS app, it has specific window sizes, multiple buttons in specific places in a tab, multiple text fields, table views, popup lists, etc. Each tab is different. I can't find any good info that isn't so targeted at iOS to be useless for my needs.
Posted Last updated
.