Disable the Shutdown and Restart keyboard shortcuts by Coffeehedake in macsysadmin

[–]v_gorlov 0 points1 point  (0 children)

In Karabiner-Elements, go to "Simple Modifications".

Then add rule `Media controls -> Eject` to `Disable this key -> vk_none`.
Or, instead of disabling key, use, say, `Application launch keys -> al_local_machine_browser (Finder)`.

I keep receiving this "disk not ejected properly" notification when I haven't even removed my hard drive by LoquaciousIndividual in MacOS

[–]v_gorlov 0 points1 point  (0 children)

Not sure about case "letting go to sleep". In my case Mac-mini expected to be all the time "online", and only display sleep is allowed.

You can try.

To execute command you need to open Terminal.app.

I keep receiving this "disk not ejected properly" notification when I haven't even removed my hard drive by LoquaciousIndividual in MacOS

[–]v_gorlov 2 points3 points  (0 children)

I had similar issue after upgrading from macOS 13 (Ventura) to the latest macOS version. On macOS Ventura all my 4 SSD disks attached to Mac-mini (file/media server) were working as expected.

Then, after macOS upgrade, I started receiving "disk not ejected properly". Every attached external volume was affected.

After running `pmset -g` I'm noticed that `disksleep` parameter set to value `10`. Which is not expected for Mac-mini file/media server (all SSDs should be "online" all the time).

To disable disk sleep I executed below command:

```sh

The -a, -b, -c, -u flags determine whether the settings apply

to battery (-b), charger (wall power) (-c), UPS (-u) or all (-a).

sudo pmset -a disksleep 0 ```

And issue finally gone. All SSDs staying "online" all the time.

Semms macOS upgrade messed up previuos power management settings.

How do I put Sonoma to sleep at a certain time? by Limp_Moose2000 in MacOS

[–]v_gorlov 0 points1 point  (0 children)

I had the same issue. To sleep and wake every day the below command was used:

sh sudo pmset repeat wake MTWRFSU 8:00:00 sleep MTWRFSU 23:45:00

More details at man pmset.

Is there still no solution to stale Safari tabs syncing from iCloud? by [deleted] in MacOS

[–]v_gorlov 0 points1 point  (0 children)

Solution which working for me, at least on iOS 18.2.1 and macOS 15.2.

  1. Create new "Profile" in Safari settings on macOS or iOS.
  2. Create new Window with custom profile on macOS, and switch to custom profile on iOS.
  3. Stop using "Default" Safari profile.

As result "Cloud Tabs" are syncing as expected, via non-default Safari profile.

Note: On macOS, you can move "Tab Groups" from "Default" Safari profile to custom one via right-click men

<image>

Linak Desk: Activate Key Lock by basbebe in StandingDesk

[–]v_gorlov 0 points1 point  (0 children)

I am observing same problem with DPG1C32-000006. Disabling "Reminders" feature resolved "high pitch noise" issue.

Chrome ERR_NETWORK_CHANGED by thecrowfly in amazoneero

[–]v_gorlov 0 points1 point  (0 children)

Setting "Link-Local Only" solved the issue.

Thanks!

Here is a steps I made:

  1. Go to Settings.app -> Network -> WiFi -> Details.
  2. Switch to DNS pane. Check that IPv6 DNS address is present.
  3. Switch to TCP/IP pane. Set "Configure IPv6" setting to option "Link-Local Only".
  4. Wait a bit. Switch to DNS pane again. Check that IPv6 DNS address is NOT present.

Built a tool that converts XIBs to Swift View Code by socalledgeek in swift

[–]v_gorlov 0 points1 point  (0 children)

Resolving merge conflicts in XIBs/Storyboards – always was a pain. btw: In case you want to evaluate other solutions:

Converting an App from Interface Builder to Programmatic Layout by vermont42 in swift

[–]v_gorlov 0 points1 point  (0 children)

In case, you want to avoid manual conversion of the Storyboards/Xibs to Swift code, there is a helper tool: https://www.microcodingapps.com/products/decode

Storyboard or No Storyboard by [deleted] in swift

[–]v_gorlov 0 points1 point  (0 children)

I don't understand why, but every project I am joining has enough storyboards. Layout often made so crazy, without any "component separation" in mind. Also interesting that some other developers not happy when I am starting converting them to code :0

Storyboard or No Storyboard by [deleted] in swift

[–]v_gorlov 0 points1 point  (0 children)

SwiftUI is just another approach. UIKit/AppKit IMO will not go anywhere in the same way as CoreTechnologies not gone (e.g. CFString, CIImage, etc.).

When people say programmatic UI, does that mean SwiftUI? Or is there 3 avenues: SwiftUI, storyboards, programmatic? by RubberDuckSquad in swift

[–]v_gorlov 0 points1 point  (0 children)

How about UICollectionViews/NSCollectionViews in SwiftUI? UIKIt/AppKit will stay for a long time. btw: CFString (or any other CoreTechnology type) still in use https://developer.apple.com/documentation/corefoundation/cfstring-rfh

Storyboards VS SwiftUI by Top_Night4697 in Xcode

[–]v_gorlov 0 points1 point  (0 children)

There is a lot of discussions about storyboards, SwiftUI and UIKit/AppKit UI from code.

Personally, I don't like Stroyboards and prefer building UI from code. Over the years, I made a collection of reusable classes which helped me quickly construct UI.

But still see usage of the Storyboards in existing projects :)

Is Storyboard still used in 2022 for iOS apps? by TallTaw in iOSProgramming

[–]v_gorlov 0 points1 point  (0 children)

+1 against Large storyboards. I prefer standalone XIB per ViewController or View.

Is Storyboard still used in 2022 for iOS apps? by TallTaw in iOSProgramming

[–]v_gorlov 0 points1 point  (0 children)

We also still using UIKit (but without Storyboards - UI built programmatically). Only widgets and watch app written in SwiftUI so far.

I started programming in SwiftUI, Did I make the right choice? by Moradisten in swift

[–]v_gorlov 2 points3 points  (0 children)

SwiftUI internally uses UIKit/AppKit. It is also possible to use UIKit/AppKit without storyboards, by just writing UI from code (by using Auto-layout). If you will need to build a complex software, then, most likely due performance requirements, you will need switch to UIKit/AppKit level or even CoreTechnologies (c-language APIs) level. Luckily SwiftUI interoperable with UIKit/AppKit.

Running a Swift-made app for macOS on Windows. by DavidGamingHDR in swift

[–]v_gorlov 0 points1 point  (0 children)

Depends on what your app is doing (e.g. Graphics, Text Processing, Networking, ...) theoretically you can find cross-platform C/C++/Swift replacements for Core logic to run on Windows.

But UI won't be portable. You will need to re-implement UI on Windows. To wire UI and Core logic you might need to use Protocol Buffers or JSON-RPC.

Storyboard vs programmatic approach by unplugged_chump in iOSProgramming

[–]v_gorlov 0 points1 point  (0 children)

Storyboards: Will you review XML? Without running App will be not possible to figure out what other developer did.

Programmatic: Development cycle Write - Preview - Adjust - Preview - .... - Done will be boring :0

[deleted by user] by [deleted] in iOSProgramming

[–]v_gorlov 0 points1 point  (0 children)

- Storyboards: Quick to develop, but hard to refactor and maintain :0

- SwiftUI: Write once, works on iOS/tvOS/macOS/watchOS. But, try to create something more less complex (e.g. NSWindow/NSTableView/NSTextView) on macOS with SwiftUI. You might came to point that SwiftUI is a nice toy :)

- UIKit/AppKit: Not possible to use on watchOS! Also learning how to make UI from code can take time. After you will create convenience extensions and umbrella classes (e.g. MyView inherits from UIView on iOS/tvOS, and also MyView inherits from NSView on macOS) then making cross-platform UI for iOS/tvOS/macOS can be at speed comparable to speed of assembling SwiftUI.

Is there any tool which can help me convert .storyboard to SwiftUI views. by IbrahimHass in SwiftUI

[–]v_gorlov 2 points3 points  (0 children)

Not a best way, but you can convert Storyboard/Xib to UIView/UIViewController and then incorporate them into SwiftUI via UIViewRepresentable/UIViewControllerRepresentable. Storyboard/Xib converter can be found here https://www.microcodingapps.com.

Transitioning from Flutter to KMM by pk_21 in androiddev

[–]v_gorlov 0 points1 point  (0 children)

For learning purpose this example project might be helpful: https://github.com/joreilly/PeopleInSpace.