mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

9.7K
active users

#AppKit

2 posts2 participants0 posts today

As always, the #developer documentation from #Apple for new features in the now almost one year old #macOS 15 is completely amazing, full of detail, hints, and usage recommendations.

/s

NOT!

Seriously, how does Apple expect us to write insanely great apps with that complete dummy of a documentation?

Anyhow, you add that new method to any custom NSView you have, so that invoking the contextual menu in macOS "Sequoia" with the keyboard, using the new hotkey Alt-Return, knows !where! in your view the current selection is being displayed, and the context menu thus shall appear.

sometimes simple code is best. i really like this category method on NSFileManager:

```
- (BOOL)linkOrCopyItemAtURL:(nonnull NSURL *)srcURL toURL:(nonnull NSURL *)dstURL error:(NSError *__autoreleasing _Nullable * _Nullable)error {

BOOL success = [self linkItemAtURL:srcURL toURL:dstURL error:error];

return (success) ?: [self copyItemAtURL:srcURL toURL:dstURL error:error];

}

```

#obj-C #AppKit

DST change reminded me of that time QA discovered that, if you build a date from NSDateComponents, any missing items will not be set to zero, but will be set to the corresponding value from the current date and time.

Which meant that my March 30th, 12:00 would get random one-minute-drift like 12:00:59 because the user entered the date right before a minute change.

Makes sense for the date, but was a bit bewildering for the time, especially seconds.

It’s kind of strange that if you have several NSToolbars in your app and the user customizes the display mode in one of them to, say, “Icon and Text” this state does not sync to all of the app’s toolbars. There also doesn’t seem to be any obvious way to observe changes to these settings. I guess that’s just okay and the user is expected to customize them all separately..?

Or I wait until next WWDC and our Mac windows won’t have toolbars anymore as they have been designed for “the next generation of users”.

#AppKit #UIKit #CollectionView

Any (NS/UI)CollectionView fans here? I’m trying to make a good collection view UI. It is just a simple flat scrolling column of things, should be simple layout.

I want the cells to size themselves to the SwiftUI content in them, which they almost do, but not when I resize the window and things start to wrap differently.

What am I missing? How should I make the heights respond better to window resizing?

Code: gist.github.com/jaanus/66e3d86

Introducing a little passion project 😌 RM2000 Tape Recorder is a macOS tool for recording and managing audio samples as fast as possible

Platform-agnostic tagging system, never meant to lock you into any service. Optimized for performance, private by design. The digital equivalent of a Yamaha SU10 with the looks of a Sony PCM-D100

Built using fully native macOS technologies (SwiftUI + AppKit). Modified version of Tachyo as the main font face (thank you @ensix !)

Available on the Mac App Store soon — Free Public Beta Testing opens by Feburary via Apple TestFlight

Cultured Code's Things app used to be one of those shining examples, good-Mac-citizen apps. The UI and UX was just *chef’s kiss*. The icons and design would make you think 2010 Apple designed it.

I miss when we had a good visual distinction between user content and UI belonging to the app. Not all types of content needs to "blend" with your app's UI. A computer is still a tool at the end of the day, not just something to sit there and look pretty.

#UI#UIUX#macOS