š•Š · @chucker
518 followers · 18347 posts · Server norden.social

Anyone use github.com/tuist/tuist in lieu of a native .xcodeproj? I mainly ask because git merge flows are painful with the latter format. Too many conflicts that result from irrelevant internals.

#appkit #xcode

Last updated 1 year ago

Johannes Brakensiek · @lazarus
94 followers · 706 posts · Server fosstodon.org

@el_gaucho If you like to create/use the backend in C and (use @objfw), then you will be able to use for the frontend. Either using on Apple devices or using on other Posix devices as soon as I manage to complete it. As long you may want to look at @vala_lang which provides C bindings for many libraries and more if you create VAPIs yourself.

#objc #appkit #uikit #objgtk #floss

Last updated 1 year ago

bram dingelstad :nb_flag: · @bram
1467 followers · 778 posts · Server gamedev.lgbt

anyone have a good way of subscribing to the changing of the dark / light theme in using or , but in a background thread?

i am running out of options šŸ˜“

#macos #ObjectiveC #appkit #rust

Last updated 1 year ago

Sƶren · @chucker
506 followers · 17185 posts · Server norden.social

Anyway, filed as FB12602377. With a sample project.

(Iā€™m not _that_ experienced with , so I may also be misunderstanding something.)

#appkit

Last updated 1 year ago

Sƶren · @chucker
479 followers · 15353 posts · Server norden.social

Is there some Apple HIG guidance on choosing colors based on ā€˜distanceā€™ (contrast-ish)? Something like

```swift
static let palette = [NSColor.systemOrange,
NSColor.systemBlue,
NSColor.systemYellow,
NSColor.systemMint,
[..]
```

(A bit surprisingly, Finderā€™s default Tag colors seemā€¦Ā poorly chosen in that regard?)

#macdev #appkit

Last updated 1 year ago

Kuba Suder · @mackuba
192 followers · 614 posts · Server martianbase.net
Kuba Suder · @mackuba
189 followers · 610 posts · Server martianbase.net

I didn't realize that my NSButtons blog post was that popular šŸ˜‚

#wwdc23 #macdev #appkit

Last updated 1 year ago

Kuba Suder · @mackuba
187 followers · 602 posts · Server martianbase.net

There's some weird stuff with NSApplication activation in the release notes:

#appkit #wwdc23 #macdev

Last updated 1 year ago

Sƶren · @chucker
471 followers · 14482 posts · Server norden.social

I wasted 5 hours trying to figure out an /#CoreData crash in a macOS High Sierra VM.

I eventually tracked it down to it refusing to load a resource, but was still in the entirely wrong rabbit hole trying to figure out why.

It had nothing to do with High Sierra. Or Core Data. Or the resource being in a framework bundle.

No, it was because I was opening the app from an SMB volume, which apparently silently refuses to load some resources.

šŸ˜–

#appkit

Last updated 1 year ago

Nikhil Nigade · @nikhil
166 followers · 1120 posts · Server social.dezinezync.com

One of the best things about (over ): keyboard navigation comes for free (if you implement things correctly) unlike UIKit which requires me to handle a gazllion things before it can even do half of it correctly

social.dezinezync.com/@elytra/

#appkit #maccatalyst

Last updated 1 year ago

Sƶren · @chucker
458 followers · 12611 posts · Server norden.social

I made a little extension method for getting an `NSFont` with a specific `weight` that uses an approximation of the `systemFont`ā€™s new `weight` behavior. So you can do:

var regularFont: NSFont
let sameFontButBolder = regularFont.withWeight(weight: .semibold)

Found that someone else on Stack Overflow seemed to have a similar problem, so I posted my code there: stackoverflow.com/a/76143011/1

#appkit

Last updated 1 year ago

Kuba Suder · @mackuba
164 followers · 329 posts · Server martianbase.net

I was curious if that bottom window toolbar that was used in some Mac system apps a few versions back is still a thing. So, apparently this is "setContentBorderThickness" and it still works on Monterey.

The problem: it was mentioned in the HIG as discouraged already in 2011 šŸ˜…

#appkit #macdev

Last updated 1 year ago

Kuba Suder · @mackuba
162 followers · 257 posts · Server martianbase.net

Working on the thing againā€¦ Now it will have to work in such way that you'll need to get your own Twitter API key and enter it there.

I'm not sure yet how I'm going to release it - currently leaning towards non-MAS freewareā€¦

#macdev #appkit

Last updated 1 year ago

Kuba Suder · @mackuba
158 followers · 254 posts · Server martianbase.net

No documentation for a property introduced in El Capitanā€¦ This is fine, this is normal ĀÆ\_(惄)_/ĀÆ

#macdev #appkit

Last updated 1 year ago

Sƶren · @chucker
435 followers · 10339 posts · Server norden.social

In a view-based , how do I draw with the same color as text fields? I tried `cellView.textField?.textColor?.cgColor`, but that gives me the default text color, which is wrong when a row is highlighted. (It does, however, seem to work correctly with dark mode.)

I find many results for setting (overriding) the text color, but notā€¦Ā getting it in the first place.

Am I supposed to check myself if a row is selected?

#nstableview #appkit

Last updated 1 year ago

Sƶren · @chucker
428 followers · 10131 posts · Server norden.social

Iā€™m observing something from NSNotificationCenter. How do I rewrite this to allow for async/await?

I see that you can await `NotificationCenter.default.notifications`, but I donā€™t want to await the _subscription_, but rather the _notification_. Basically, something like:

```swift
@objc
func didBecomeKey(notification: AppKit.Notification) async {}
```

#swift #appkit

Last updated 1 year ago

Kuba Suder · @mackuba
136 followers · 118 posts · Server martianbase.net

Ok, I know I'm a slowpoke like Internet Explorer, but I've just signed up for this thing I heard about andā€¦ I guess it could be pretty useful to answer questions instead of Google/StackOverflow? šŸ¤”šŸ¤”

#chatgpt #macdev #appkit

Last updated 1 year ago

aciodev · @aciodev
0 followers · 1 posts · Server mastodon.social

Localizing hundreds of strings is an important lesson to have done this along the way. šŸ˜µā€šŸ’«

#swift #appkit #stellarforreddit

Last updated 1 year ago

Isaac Halvorson · @hisaac
297 followers · 265 posts · Server allamaraine.io

Anyone know of a good open source example or writeup of how to build a standard-looking macOS Preferences window using SwiftUI? As a SwiftUI newbie, Iā€™m not sure where to start.

Note: Iā€™d like to find a way to build it myself without using the (admittedly great) Preferences library from Sindre Sorhus. github.com/sindresorhus/Prefer

cc @marioguzman

#swiftui #appkit

Last updated 1 year ago

Is it just me, or have the last couple of versions of introduced a change where switching back to an app (using āŒ˜-tab) results in no window having focus/being active?

No keyboard commands can then work until you actively click on (or āŒ˜-~ to) a window.

This includes the Finder in cases where there are 2 or 3 open windows, & apps that are primarily single-window apps. vs issue?

Iā€™ve been a Mac user since 1991; this feels recent. (Or maybe Iā€™m just losing my mind.)

#appkit #catalyst #macos

Last updated 1 year ago