291,747 questions
1
vote
1
answer
91
views
Problems using PyObjC to resolve aliases
I'm trying to use PyObjC (a bridge between the Python and Objective-C), version 12.1_3, to find the original file of a Finder alias, but I can't seem to get it right:
Python 3.13.13 (main, Apr 8 2026,...
Best practices
0
votes
2
replies
60
views
Is it possible to set-up a build setting from a pre-action/build phase in Xcode?
I'm not sure what's the best practice around here but essentially the problem I have is I want to have a tool that generate a path (an unix domain socket) and set it in ...
Advice
1
vote
2
replies
65
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
86
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
161
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
69
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
69
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
70
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
91
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
167
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
72
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
120
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
237
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
110
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
146
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 ...
