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…) 🤨

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 🤔

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

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

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

anosidium, to SwiftUI
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.

lukaskubanek, to swift
@lukaskubanek@mastodon.social avatar

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

#AppKit #NSDrawer #macOS #MacOSX #Macintosh

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 Aqua appreciation post. It's just gorgeous.

image/png

marioguzman, to random
@marioguzman@mastodon.social avatar

Probably one of my fave "fine tuning" APIs in #AppKit 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

anosidium, to macos

Today, I am excited to reveal that my macOS Mastodon client is called Oliphaunt and here is the public TestFlight link: https://testflight.apple.com/join/QLqIRNwe

Please remember that it is a beta, so it is a work-in-progress and expect some bugs here and there. Some features are not fully implemented and I am aware of some of them and probably forgot others. 🤭

I would really appreciate your feedback. Please share your feedback on GitHub, https://github.com/anosidium/Oliphaunt-Feedback-And-Support

#Oliphaunt #macOS #Swift #AppKit #SwiftUI

mackuba, to random
@mackuba@martianbase.net avatar

I managed to implement NSTableView row reordering - was a bit harder than I'd expect, but this blog post was pretty much copy-paste what I needed: https://samwize.com/2018/11/27/drag-and-drop-to-reorder-nstableview/
#MacDev #AppKit

Short video of reordering accounts on the list in a Mac app preferences window by dragging them up or down

onegeekarmy, to swift
@onegeekarmy@mastodon.social avatar

#AppKit #swift and #xcode people, I have a puzzling issue in Sonoma.

I have an NSTextView inside an NSScrollview. I load about 800 KB of text data in the text view.

Scolling is slow and choppy.

I click the "Debug View Hierarchy" button in Xcode. I then press the "Continue Program Execution" button (without doing anything else).

My text now scrolls smoothly in its scroll view.

Any idea what is going on? What does the view hierarchy debugger turn on that makes my view useable?

marioguzman, to SwiftUI
@marioguzman@mastodon.social avatar

I really wanted to make PDX Transit a purely SwiftUI app but I gave in and decided to jump down to AppKit for certain things like NSTextView.

I guess I was stupid to think I could do it without AppKit but also trying to come to terms that this is also okay to do.

#AppKit #SwiftUI #macOS

rafa, to macos
@rafa@mastodon.design avatar

Is there a Notification I can observe to be alerted when the user changes the selected audio input device on #macOS?
#AppKit #swift

anosidium, to macos

I’ve been working on a new macOS app, it’s a Mastodon client! I started it in January and went full development from July onwards. The client is made specifically for the Mac, conforming to the design language very seriously. I aim to make it a true Mac app with platform-specific features. Here is a screenshot, what do you think?

#macOS #Swift #AppKit #SwiftUI #MastodonClient

kn, to macos

The macOS Ventura System Settings has one of the strangest text fields I've ever seen in macOS. Why is it... right-aligned?

A screen recording of me typing into a right-aligned text field. Looks bad

marioguzman, (edited ) to Mac
@marioguzman@mastodon.social avatar

I've decided to take the old #Macintosh HIGs & merge them into one large collection of topics while modernizing them in the process.

The original #HIG would give actual examples w/ usable metrics & mention possible exceptions to the rule. The incredible level of detail gave developers the guidance to create delightful UI users have come to expect from their #Mac.

Here is my first topic: Layout Guidelines

#macOS #design #AppKit #SwiftUI

https://marioaguzman.github.io/design/layoutguidelines/

  • 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