Cykelero, to random
@Cykelero@mas.to avatar

Does someone know what causes Xcode to regularly add/remove the focusRingType="none" attribute in macOS Storyboards? It's making diffs much messier than they should be!

mackuba, to random
@mackuba@martianbase.net avatar

Ok, I gave up on Applescript, it wasn't flexible enough… I built it in .

Basically I wanted something that I can put into crontab, which shows a popup dialog that I can't too easily ignore, which tells me to get away from the computer when it's time to make something to eat or go to sleep 🫠🫣 https://bsky.app/profile/did:plc:oio4hkxaop4ao4wz2pp3f4cr/post/3ktgft6f7k227

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

davidbures, to SwiftUI
@davidbures@mstdn.social avatar

I wonder, is there a built-in AppKit/SwiftUI component that lets you show a folder structure like this? Or do you have to create a custo one? I can't think of a way to look this up 🤔

chrismarquardt,
@chrismarquardt@chaos.social avatar

@davidbures swiftui native breadcrumbs view is diy unfortunately

davidbures,
@davidbures@mstdn.social avatar

@chrismarquardt Thanks! That’s sad though, I’m really hoping for some SwiftUI on Mac improvements soon, but I’m not holding my breath 🥲

cdfinder, to apple
@cdfinder@techhub.social avatar

Since when does AVPlayerView install its own context menu with weird and unwanted "sharing" commands, overriding the menu I have set myself?

Sigh. Is there documentation for that? I couldn't find anything...

cdfinder,
@cdfinder@techhub.social avatar

I fixed it!

You can use "allowsVideoFrameAnalysis" property on the AVPlayerView to deactivate this unwanted thing.

Of course, this is NOT documented in the official release notes, which were always suspiciously short:

https://developer.apple.com/documentation/macos-release-notes/appkit-release-notes-for-macos-13

I only found a reference to that in 2022 video 10026.

cdfinder, (edited ) to macos
@cdfinder@techhub.social avatar

So, it turns out that in #macOS 14 #Sonoma, if you have a NSPopUpButton, and use removeFromSuperview and then later addSubview to add that item again to a view, macOS doesn't draw the button properly, until it gets clicked at least once.

(setting up said Popup is very expensive, as in "slow", in the app in question, so for 15 years, it was a working idea to keep it around)

Awesome.

Yet another #bug in the long long list of massive problems in the #AppKit system frameworks in #macOS14.

#developer

Cykelero, to macos
@Cykelero@mas.to avatar
cdfinder, to macos
@cdfinder@techhub.social avatar

Yeay, 8.6 has just been released!

This is always a strange time, all the hard work and pressure in the previous weeks, then the release, and then? Nothing. At least for a while.

It somehow feels like a little black hole.

I call that the "post release blues".

What to do? A nice long walk along the river banks. Get some fresh air, and then?
Start with the next version! 😅

https://mastodon.social/@neofinder/112275160816124961

furnacecreek, to macos

Do you have a Mac app that prompts for Mac App Store reviews using SKStoreReviewController or the requestReview SwiftUI action? The review window is getting presented inactive and in the background on macOS Sonoma. We came up with a workaround:

https://furnacecreek.org/blog/2024-04-14-how-to-prevent-background-mac-app-store-rating-windows

cdfinder, (edited ) to apple
@cdfinder@techhub.social avatar

Thank you, , for NOT making MKMapFeatureAnnotation available in .

WTF?

What are they doing?
This is so frustrating...

Seriously, Tim, if you are not interested in macOS anymore, place it in a new separate company that may actually work on it, and fix the bugs...

titociuro,
@titociuro@mstdn.social avatar

@cdfinder Totally. I just wonder how much does he really know about the current state. He’s not an engineer… so perhaps all he hears is that everything is going just fine?

cdfinder,
@cdfinder@techhub.social avatar

@titociuro

Quite possible, yes. Maybe Timmy is simply looking at the numbers, and counting the money.
Somebody should really tell him about the lousy software quality of ...

obrhoff, to SwiftUI

People often ask me, if DaftCloud is written in SwiftUI. Nope, it's AppKit with some weird design pattern. Most screens are just CollectionViews with DiffableDataSource which gets Diffed / Redrawn on State Updates.

I love SwiftUI on the iOS, but I heard that it's still not ready for macOS (after 4 years?)

ctietze,
@ctietze@mastodon.social avatar

@obrhoff that looks like a really intriguing layout to work on, nice job!

macmade, to macos
@macmade@mastodon.social avatar

Made a tiny app to copy metadata from an image to multiple images. It is helpful for my astrophotography workflow, as I often lose metadata while stacking images.
Available on my GitHub: https://github.com/macmade/MetaCopy
#macos #app #cocoa #swift #appkit #astrophotography #photography #photo #metadata #exif

anosidium, to SwiftUI
phranck, to apple
@phranck@chaos.social avatar

I stumbled across while browsing the web. I had completely forgotten that this website still exists. 😃

All the controls I developed eons ago are listed here. 🤓

https://www.cocoacontrols.com/authors/phranck

humblehacker, to macos

I noticed some inconsistency in text selection behavior. If I have some text selected and I shift-click before the selection, the selection start point moves to the clicked point. But in some places, the end point also moves to the previous start point.

Try it! Shift-click before some selected text …

  • Safari address bar: extends selection
  • Settings search field: replaces selection

Anyone know why?

I thought maybe vs , but after many experiments I don't think so.

humblehacker,

A little code goes a long way. Just popped up a SwiftUI view with a TextField and a TextEditor, and sure enough, that's the difference! TextField (NSTextField) has the selection replacement behavior, while TextEditor (NSTextView) has the selection extending behavior.
@bgannin

humblehacker,

@krzyzanowskim @bgannin Do you mean NSTextView.isFieldEditor? AFAICT that doesn't change the selection style.

Incidentally, I checked out your STTextView, and it has the "replace" selection style of NSTextField rather than the "extend" style of NSTextView. Was this intentional?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • lostlight
  • All magazines