Skip to main content
1 vote
0 answers
73 views

I am building a macOS utility using SwiftUI and Swift that records and displays keyboard shortcuts (like Cmd+C, Cmd+V) in the UI. To achieve this, I am using NSEvent.addGlobalMonitorForEvents(matching:...
Zaid's user avatar
  • 513
3 votes
1 answer
98 views

This is super easy with UIKit (imageWithTintColor:) but I need tinted monochrome NSImage in AppKit and no such equivalent exists. I know there is private method in AppKit -[NSImage ...
Marek H's user avatar
  • 5,652
-1 votes
1 answer
77 views

I created a simple project where an NSScrollView contains a vertical NSStackView with several colored square NSView items. However, when I build and run the app, it launches already scrolled down by ...
typehint's user avatar
  • 103
0 votes
0 answers
63 views

I have old code that is capable of displaying every image but not the SVG. SVG can be displayed with QuickLook using Finder. However, I cannot replicate this in app. Quick note: NSImageView can ...
Marek H's user avatar
  • 5,652
0 votes
0 answers
223 views

The console is filled with: ViewBridge to RemoteViewService Terminated: Error Domain=com.apple.ViewBridge Code=18 "(null)" UserInfo={com.apple.ViewBridge.error.hint=this process disconnected ...
Zorgiev's user avatar
  • 836
1 vote
1 answer
103 views

I've been working on a Tk widget that uses Cairo for more complex drawings as an extension to the standard Tk functions. I've had great success on Windows and Linux, but not so much on MacOS. I need ...
Andereoo's user avatar
  • 1,078
-1 votes
1 answer
139 views

I am learning Objective-C + Cocoa. According to a very outdated book (there are no newer ones like this one), I need to do the following: Create the application. Create a new Cocoa application named ...
Zorgiev's user avatar
  • 836
2 votes
0 answers
90 views

In Tahoe, folder icons are color-tinted with a gradient. A small part of the folder remains uncolored, and it’s also possible to overlay a mask icon or even an emoji on top of the folder. How can I ...
stapoz's user avatar
  • 33
0 votes
0 answers
76 views

I am trying to authenticate the communication using certificates over TLS 1.3 in Cocoa application, but URLSession:didReceiveChallenge:ComplitionHandler didn't get called for ...
Khushneet's user avatar
  • 906
1 vote
1 answer
110 views

How to draw line number with NSRulerView? Displaying line numbers with NSTextView, written with Objective-C, clean and simple. Sorry, I know this is an old question frequently asked, but I can't find ...
Ashin's user avatar
  • 31
0 votes
0 answers
111 views

I have code in my macOS app that shows a save dialog using NSSavePanel. I want the panel to always open in a specific directory that I send as a parameter to my function. (e.g., /User/Desktop). Here’s ...
Ishi's user avatar
  • 3
0 votes
0 answers
95 views

I have this simple app where I need to be able to bring the app to front and focus its window with a keyboard shortcut: import Cocoa import HotKey class ViewController: NSViewController { ...
sudoExclamationExclamation's user avatar
0 votes
2 answers
62 views

In my macOS app (objC), the user can trigger tasks that can take some time, like importing files into a database. These tasks do not run on the main thread because they spawn a window (sheet) to show ...
jeanlain's user avatar
  • 475
0 votes
1 answer
32 views

I am showing a menu bar button for my app: let statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength) if let button = statusItem.button, let img = NSImage(named: "...
sudoExclamationExclamation's user avatar
0 votes
0 answers
43 views

I’m using Core Data in a macOS app and performing most work in a background context. However, I’d like to take advantage of Core Data’s built-in undo functionality and I’m struggling with how to ...
user10711707's user avatar

15 30 50 per page
1
2 3 4 5
2641