77 questions from the last 365 days
Advice
1
vote
2
replies
40
views
How do you use metal to draw to an nswindow
I'm working on a graphics library for c++ so I can build games, and I've already created an objc program to make an NSWindow. After this comes drawing to it. I've decided to use Metal render images on ...
0
votes
1
answer
63
views
How do I programmatically exit a custom [NSApp run] method?
As the title suggests, I have been working on a cross-platform project where I want to create apps for the macOS backend programmatically (without Xcode) through a combination of C and Objective-C, ...
Advice
1
vote
3
replies
113
views
What are the available approaches for binary obfuscation in iOS apps (Swift + Objective-C)?
I’m researching binary-level obfuscation techniques for iOS applications to better protect compiled code against reverse engineering.
Most discussions I’ve found focus on source-level obfuscation (e.g....
0
votes
0
answers
60
views
Are multiple insertion points possible in NSTextView?
I'm trying to modify how NSTextView behaves with multiple selections. More precisely, I'd like to override moveLeft: so that it doesn't collapse the selection to the first location, but rather the ...
Best practices
0
votes
1
replies
61
views
Where should I put http basic auth delegate methods, which are shared among a couple of view controllers?
I am wondering where I should put http basic auth delegate methods in my xcode project, given the conditions below.
xcode 14.0 objective-c
it has a tab bar controller, which has four view controllers....
0
votes
1
answer
65
views
My Xcode Bridging Header doesn't seem to include my Swift class
I think have done everything by the book.
I added a small Swift file to my Objective-C project. This is code in the project, not in a framework, so I did not use the public keyword:
import Foundation
...
2
votes
1
answer
87
views
Mac OS X Cocoa: applicationDidBecomeActive not being fired
I'm making an app purely from code (so this is not a duplicate of this because the solution to that was configuring a nib file from XCode) and I want to detect when my application has become the main ...
4
votes
0
answers
163
views
macOS AudioToolbox kAudioUnitSubType_HALOutput Obj-C API broken?
The following ~100 lines of code for capturing audio input signals from whichever default device, that used to work ever since OSX, seem broken as of macOS 11 API, approximately. It compiles and links ...
0
votes
2
answers
63
views
NSMetadataQuery file searches no longer work for sandboxed Mac apps?
I'm continuing to work to update an older MacOS app written in Objective C. It creates kaleidoscopes, and has a "native" file format that describes the kaleidoscope document, including a ...
1
vote
0
answers
110
views
How to get accurate Mouse/Trackpad deltas on macOS when using CGWarpMouseCursorPosition?
I am working on a remote control application for macOS where I need to maintain two "virtual" cursors:
Remote Cursor: Follows the remote user's movements.
Local Cursor: Follows the local ...
6
votes
0
answers
228
views
Is it possible to get macOS window border radius using CGWindowListCopyWindowInfo on macOS Tahoe+
macOS Tahoe windows can have various border radii. I need a way to measure a given window's border radius in pixels.
Currently, I get a list of windows using CGWindowListCopyWindowInfo and process it ...
0
votes
3
answers
104
views
Can you ask the file manager for an error code if createFileAtPath:contents:attributes: fails?
I am still trying to resurrect an old Objective-C Mac app and give it some new life before I rewrite it. (It's a big, complex app using OpenGL, NSThread concurrency, so the rewrite will be a big job.)
...
-4
votes
1
answer
135
views
How to get an older project to Create universal binary and target Apple Silicon
Related to my other recent question, something about my older project (created in 2011 in Objective C) prevents it from letting me target my Mac as an Apple Silicon device. It only lets me run the app ...
0
votes
1
answer
317
views
How to apply the iOS 26 "Liquid Glass" swipe transition effect like Camera Mode or Safari Private Mode switcher natively?
I am looking for the specific native API or implementation approach to replicate the horizontal swipe interaction found in two specific iOS system apps:
iOS Camera App
The "Mode Switcher", ...
Advice
0
votes
2
replies
82
views
Accessing Swift function in a framework from Objective-C AppDelegate.m
I'm working on an application where SwiftUI is being introduced to an app that was originally in Objective-C and then converted about 50% to Swift. Now future development will be in SwiftUI for the ...