I want use keyDown method to see which key pressed in keyboard but it does not work also my computer makes sounds to tell the key even does not work. ...
I want use keyDown method to see which key pressed in keyboard but it does not work also my computer makes sounds to tell the key even does not work. ...
I am posing a notification and also i am getting the notification and the app works, my app would be working with or without weak self so I am little ...
This is my project: My goal is be able to update my window title, I am be able to update the variable that holds my app name but since viewWillAppe ...
I am following an article which tells me to find main interface and make some edit on it, but I am unable to find it, here is a screen shot of it: ...
I am using ViewController for my app content, I want be able to update my app window in AppDelegate. I know that I can update my window from ViewContr ...
I know there are answers like these, but almost everyone has their menu bar in storyboard. I made it purely in code without using .xib files so I'm no ...
Consider the following Cocoa project structure: Here the root folder refers to sources of the Host target (the main executable target), while Loada ...
Problem I need to be able to push all the content in a window down by about 75pt. For context, I'm currently trying to build my own custom navigation ...
I have a function playing audio for a macOS swiftUI app but I want it to play the sound through the default built in speakers every single time. Does ...
I have followed this tutorial, I created a new empty project and all worked. When I wanted to integrate that to my macOS Swift/Storyboard application, ...
I have a SwiftUI/AppKit app (for compatibility with macos 10.15). I have successfully implemented an open and a save file method using NSOpenPanel and ...
I'm trying to add a stroke to `CGPath` in a macOS app with the code below. The issue is that the stroked path can't be filled properly. With the curre ...
The NSStatusItem menu shows correctly but when I click on menu the action not fire. Since the app is compatible with Mac Catalyst, I created framewor ...
Let's say I have a Sockets framework, that defines an Obj-C protocol SocketResponder. Then let's say in my Services framework which depends upon and l ...
I am trying to make a similar hierarchical sidebar to the macOS Mail app using SwiftUI, Where you have parent elements, like "All Sent" and then child ...
The documentation for NSFontWeight only shows a few values, but doesn't say what is the range for each font weight. Using the following values, Wh ...
I have an NSTextField in my XIB, and I created a NSAttributedString instance, and used initWithHTML:documentAttributes: with an NSData object of some ...
Up until macOS 12, there was a checkbox labelled "Hide" for each login item in the Users & Groups System Preferences. Now in macOS 13 the login it ...
My app should import text files. With NSOpenPanel I can select files, and after closing the panel, it should import files one by one. This is done by ...
I'm trying to programmatically create an NSToolbar on a window but it does not seem to be calling the itemForItemIdentifier method (I used a breakpoin ...