umurgdk, to SwiftUI
@umurgdk@mastodon.social avatar

#hireme I'm an iOS/macOS developer with more than 10+ years of software development experience (in different development areas). I've ~3 years of experience in #AppKit, #UIKit, and #SwiftUI, #uidesign and system design. I appreciate collaboration and team work (in the real sense).

I'm open for both remote and onsite (hybrid) positions. I would appreciate if you could boost this post, I'm in critical need for a job at the moment.

martind, to random
@martind@mastodon.online avatar

Lo and Behold. There is no 'acceptsFirstResponder' in UIKit. but we do have 'canBecomeFirstResponder'.

What a lovely world.
#appkit #uikit

chucker, to random
@chucker@norden.social avatar

Anyone use https://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

krzyzanowskim, to programming
@krzyzanowskim@mastodon.social avatar

Added working "Spelling & Grammar" to https://github.com/krzyzanowskim/STTextView over the weekend.

That was fun:

✔ Use 3yo "modern" NSTextCheckingController API with 0 documentation, and nobody seems to use it - "About 22 results" results in Google.

✔ disassemble AppKit to understand how it works

#macdev #appkit #appledev #programming

image/png

chucker, to swift
@chucker@norden.social avatar

Is there a static analyzer for broken imageLiteral references?

Bonus question: is imageLiteral an idea that seemed good but wasn’t, and so has been more or less abandoned? Xcode support seems poor. #Swift #Xcode

chucker,
@chucker@norden.social avatar

Anyway, filed as FB12602377. With a sample project.

(I’m not that experienced with #AppKit, so I may also be misunderstanding something.)

drahardja, to iOS
@drahardja@sfba.social avatar

Here it is: A comprehensive look at NSItemProvider: what it does, how it works, and how to use it properly. I want this to be a one-stop-shop reference for anyone using this class in their projects.

NSItemProvider is a key class in iOS and Mac Catalyst, used in everything from Drag and Drop, to Pasteboard, share sheet, and beyond. Understanding how this class works will help you make better apps and gain insight into what the system does for you.

Please read the post, and send me feedback. Share it with your iOS developer friends. Let me know what you think!

https://www.humancode.us/2023/07/08/all-about-nsitemprovider.html

#iOS #iOSDev #macOS #MacCatalyst #apple #Xcode #Swift #ObjectiveC #UIKit #AppKit #programming

ctietze, to macos
@ctietze@mastodon.social avatar

View Clipping Changes in macOS 14 Sonoma https://indiestack.com/2023/06/view-clipping-sonoma/

PSA for #AppKit #macos apps

Cykelero, (edited ) to swift
@Cykelero@mas.to avatar

Did I just spend multiple days on centering toolbar items? Y-yeah. Turns out in an AppKit toolbar, either all items have a label, or none of them does. Setting an empty label leaves the view weirdly positioned.

The code is a big hack: it mutates AppKit-created constraints, finding them by item/attribute pairs. And to make sure the tweak re-runs whenever the toolbar item updates, I had to swizzle a method on the NSToolbarItemViewer private class.

But it works? 😅

#AppKit #Swift #macOS

marioguzman, to SwiftUI
@marioguzman@mastodon.social avatar

I'm having way too much fun with SwiftUI for . This is really coming along and already has more features than the AppKit version.

does get kinda slow though... I notice the animations are a bit choppier than under . When I use the "Debug View Hierarchy" feature in , I notice SwiftUI has far more layers than a standard AppKit app does... not sure if this contributes to the slowness.

I'm sure  will only continue to improve it though.

krzyzanowskim, to random
@krzyzanowskim@mastodon.social avatar

The more I compare TextEdit (NSTextView) with Xcode text view (editor) in terms of text interaction, the more differencea I notice. Usually Xcode editor has it wrong (sometimes slightly, sometimes significantly)

I compare behavior in 3,4 editors at once, and honestly sometimes it's hard to tell what is the right way as sometimes everyone and each handle a gesture/scenario differently

krzyzanowskim,
@krzyzanowskim@mastodon.social avatar

apparently https://github.com/krzyzanowskim/STTextView 0.7.1 got text dragging. It was mor challenging than expected to make it right. Comparing to few other editors, I could give up some details, but also I couldn’t. #appkit #macdev #macos

video/mp4

ctietze, to SwiftUI
@ctietze@mastodon.social avatar

The GNUStep project's source code is a treasure trove of minute details.

Before figuring out some #SwiftUI workarounds, I wasn't as interested in thinking about how #AppKit actually does things.

GNUStep lib-gui is a good enough approximation for what goes on in old AppKit components.

https://github.com/gnustep/libs-gui/blob/master/Source/NSApplication.m

drahardja, to random
@drahardja@sfba.social avatar

I would go even further that the “controllers” in the modern #AppKit / #UIKit world are even further away from the original conception of #MVC, and they’re hardly “controllers” in the original sense any more.

A Window Controller (AppKit) and View Controller (AppKit/UIKit) are tightly coupled to a specific Window or View, so much so that they are basically one and the same—no architectural advantage is lost by combining the Window Controller with its window; or the View Controller with its View.

I’ve always argued that the distinction between Views and View Controllers are quite arbitrary. VCs are used to house lots of functionality that regular Views don’t have—but you could have achieved the same by declaring a View subclass that conforms to the additional protocol, and doing away with the view-creation logic, couldn’t you?

IMO, the “MVC” in UIKit has no controller at all, when you think about it.

https://collindonnell.com/mvc-isnt-mvc

marioguzman, to SwiftUI
@marioguzman@mastodon.social avatar

Just as in , also brings a new Inspector sidebar API and it works pretty great too! A tad bit more limited than what you can do in AppKit because well, AppKit is very mature and it's simply another style on NSSplitViewController (which is hella old) but yeah... pretty neat stuff, SwiftUI! :)

chucker, to random
@chucker@norden.social avatar

Is there some Apple HIG guidance on choosing colors based on ‘distance’ (contrast-ish)? Something like

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

#MacDev #AppKit

(A bit surprisingly, Finder’s default Tag colors seem… poorly chosen in that regard?)

iain, to Mac

Anyone looking for a remote (UK based) or UI application developer? Experience of large, complex projects, , , , etc?

,

ctietze, to apple
@ctietze@mastodon.social avatar
marioguzman, to random
@marioguzman@mastodon.social avatar

macOS Sonoma AppKit + SwiftUI introduced a new API for Split View Controllers where the trailing sidebar is can have an "inspector" style -- like Xcode. I just introduced it to my app with minimal change to adopt the new full-height look. This is what it looks like:

#WWDC #WWDC23 #AppKit #macOSSonoma

marioguzman, to random
@marioguzman@mastodon.social avatar

It’s beta season which means Anika is here to help me write up some Feedback and Bug reports!

#WWDC #WWDC23 #AppKit #UIKit #Swift #SwiftUI

mackuba, to random
@mackuba@martianbase.net avatar
mackuba, to random
@mackuba@martianbase.net avatar

I didn't realize that my NSButtons blog post was that popular 😂 #WWDC23 #MacDev #AppKit

mackuba, to random
@mackuba@martianbase.net avatar

There's some weird stuff with NSApplication activation in the #AppKit release notes: #WWDC23 #MacDev

chucker, to random
@chucker@norden.social avatar

I wasted 5 hours trying to figure out an #AppKit/#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.

😖

thaddeus, to random
@thaddeus@mastodon.social avatar

“This can't be that hard…”

thaddeus,
@thaddeus@mastodon.social avatar

Ever-curious, I tried creating a new app w/ the traditional xib/AppDelegate architecture, but hosting a #SwiftUI view in the window.

Unfortunately, printing the window doesn't work out-of-the-box.

One of the cool things about #AppKit was that a window was printable with no extra code. Anything you were drawing in its contentView would show up in the default print implementation (which was also automatic because the window was responding to print messages in the Responder Chain).

Demo AppKit app with a red square being draw in the live window. A print dialog is in the foreground with a green square in the print preview. Xcode is in the background of the screenshot and shows code that differentiates the drawing behavior based on whether the drawing context is a screen or not.

chucker, to random
@chucker@norden.social avatar

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: https://stackoverflow.com/a/76143011/1600

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

DOWNLOAD my Companion Apps for Apple Music on Macintosh.

They’re native. They’re fun. They’re free!
https://marioaguzman.github.io/music/

  • 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