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...

#Apple #AppKit #Developer #macOS #Sonoma

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 #Apple #AppKit 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 #WWDC 2022 video 10026.

#Developer #macOS

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

So, it turns out that in 14 , 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 in the long long list of massive problems in the system frameworks in .

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

Yeay, #NeoFinder 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! 😅

#IndieDev #macOS #Developer #AppKit

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

furnacecreek, to macos
@furnacecreek@mastodon.social avatar

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

#AppKit #macOS #SwiftUI #macdev #indiedev

krzyzanowskim, (edited ) to random
@krzyzanowskim@mastodon.social avatar
aral,
@aral@mastodon.ar.al avatar

@krzyzanowskim Haha, nice:

4445425547:

0x44 = d
0x45 = e
0x42 = b
0x55 = u
0x47 = g

🐞

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...

obrhoff, to SwiftUI
@obrhoff@chaos.social avatar

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?)

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

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
@humblehacker@mastodon.online avatar

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,
@humblehacker@mastodon.online avatar

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

lukaskubanek, to swift

I’m looking for a new freelance project as an iOS/macOS developer! Familiar with , , , , and recently really into and . Creator of Diagrams for Mac, featured in the Mac App Store (https://diagrams.app). Open to remote, short to mid-term collaborations. If this sounds interesting, I’d be happy to chat.

For more info about me and my experience, check out my website: https://lukaskubanek.com

Boosts appreciated.

anosidium, to macos
anosidium, to macos

Three years ago on this day, I published my first Mac app, HacKit. It’s a Hacker News reader and the name is a portmanteau of Hacker News and AppKit. It’s a pure Cocoa app written in Swift with no SwiftUI integration.

marioguzman, to VintageOSes
@marioguzman@mastodon.social avatar

Couple years ago I recreated Classic Mac OS progress and indeterminate progress bars with Core Animation. I really need to find a project to use them in! 😁

Also, the barber pole style indeterminate progress bars were just sooooo “Macintosh.”

I hope everyone has a great day except the person who decided to remove them from modern macOS. Ugh.

video/mp4

anosidium, to macos

The next build of Oliphaunt will have a proper tab support. It will also respect your tab setting in System Settings. Is this a feature that you will use?

A screen recording of demonstrating Oliphaunt (a native Mastodon Mac client app) tab feature, by switching tabs, opening and closing a tab and showing tab overview.

marioguzman, to macos
@marioguzman@mastodon.social avatar

Sheets!

Sheets in Mac OS X had such a lovely animation presentation.

They'd come out from a "slit" between the titlebar and the toolbar. You can even see the slit. It was so neat.

And of course the "Slit" would go away when the sheet would retract as you'd dismiss it.

The often reminded me of a page coming out from a printer (much faster of course). I miss the playfulness of Mac. :(

marioguzman, to macos
@marioguzman@mastodon.social avatar

I know this is just a highlight color and not the accent color, but Apple needs to bring this back for Accent Colors -- There needs to be a Graphite accent color too. They replaced it with basic Grey and it's not the same.

Grey colored controls often look disabled.

Also this is just a #Graphite Aqua appreciation post. It's just gorgeous.

#MacOSX #Aqua #AppKit #macOS #Macintosh

image/png

marioguzman, to macos
@marioguzman@mastodon.social avatar

I feel like Apple got rid of NSDrawer because it would pretty much break with full-screen functionality... at least this is my thinking.

But they could have kept them for apps that don't support full screen and have a max size much smaller than the size of your display. They're still hella useful and cute.

marioguzman, to random
@marioguzman@mastodon.social avatar

Probably one of my fave "fine tuning" APIs in that I just love: acceptsFirstMouse(for:)

This is great for unintended actions that might happen if your users clicks somewhere in a window to bring it to the forefront but might have clicked a control.

Example: Mail overrides this for the Delete button. If Mail is in the background, if you click over the Delete button to bring it forward, it brings Mail to the front but the button will ignore that initial click.

https://developer.apple.com/documentation/appkit/nsview/1483410-acceptsfirstmouse

krzyzanowskim, to random
@krzyzanowskim@mastodon.social avatar

Achievement: improved UI responsiveness by not iterating over NSTreeController.children (that seemed to be super slow) but over the underlying data that fuel the tree controller. That was not an obvious fix, and not noticeable on small tree

chucker, to random
@chucker@norden.social avatar

Oooh, another Mastodon client.

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