141 questions from the last 365 days
0
votes
0
answers
30
views
How to correctly call an iOS completionHandler block from Delphi without crashing?
I’m trying to implement this iOS delegate method in Delphi:
- (void)URLSession:(NSURLSession *)session
task:(NSURLSessionTask *)task willBeginDelayedRequest:(NSURLRequest *)request ...
-1
votes
0
answers
71
views
Configuring a NSTextView so it behaves as a NSTextField (same background and focus ring)? [duplicate]
Has someone managed to configure a NSTextView in AppKit in Objective-C so it behave as a NSTextField (same background and focus ring)?
I understand NSTextField cannot manage multiline text editing as ...
-2
votes
1
answer
85
views
iOS 26 CLHeading's magneticHeading and trueHeading return travel direction instead of device orientation when user is in motion [closed]
I am using CLLocationManager to obtain the device's compass heading (direction), and I have encountered an abnormal behavior:
When the user is stationary: After calling startUpdatingHeading(), the ...
5
votes
1
answer
237
views
Usage of C++ reference to a struct in Swift methods
I've got codebase for iOS target with mixed languages in play: C++, Objective-C++ / Objective-C & now I want to start migration of Objective-C/Objective-C++ code to Swift.
Particular problem I'm ...
0
votes
0
answers
34
views
Cordova bridge not firing after biometric passcode fallback on iOS (device ready / document.ready not triggered)
We are facing an issue in our iOS Cordova hybrid app (WKWebView) during biometric → passcode fallback authentication.
Environment:
Cordova iOS 7.x (WKWebView)
Native plugin handles Face ID / Touch ID ...
0
votes
0
answers
35
views
Benefits of putting outlets and function headers in the header-file [duplicate]
I'm currently try to learn the basics of Objective-C.
Watching old videos I see people placing outlets and especially function-headers in the header-file.
What is the benefit of having a function-...
0
votes
0
answers
23
views
What does it take to have system default menus show up when programmatically constructing an application in AppKit for macOS Tahoe? [duplicate]
I create an app in Xcode in macOS Tahoe using Storyboards for macOS not modifying anything, and I run it, and I click on the Window menu. This is what I see:
But now... in the default storyboard it ...
2
votes
0
answers
90
views
How to get call statistics for a pjsip call in iOS
I am working on an iOS project that uses the PJSIP library for video and audio calls.
I have an Objective-C wrapper that accesses the PJSIP C functions directly.
Now, I want to get statistics for each ...
1
vote
1
answer
89
views
Swift 6 Strict Concurrency accessing C shared instance
I am trying to adapt C code, measuring pre/after main time, so it could be accessed from Swift with SC on. But nothing can silent compiler warning, indicating this code is not safe. I've tried every ...
-1
votes
1
answer
128
views
What is wrong with the following Objective-C/Cocoa book example?
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 ...
3
votes
1
answer
2k
views
Can you change the way iOS 26 renders buttons on UINavigationBar?
Since updating my Xcode and building my app for iOS 26, the buttons on the UINavigationBar look terrible, in my opinion, with large rounded rectangles around them. Can anything be done to revert these ...
-1
votes
2
answers
593
views
Under iOS 26 system, screenshots within the code cannot capture the content of the WKWebView [closed]
This is the screenshot of the code. The view content includes UIView and WKWebView. The part of UIView is normal, but the part of WKWebView shows a blank screen. This was not a problem before iOS 26, ...
0
votes
0
answers
74
views
NSURLAuthenticationMethodClientCertificate not getting fired in URLSession:didReceiveChallenge: for TLS 1.3 but works fine with TLS 1.2
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 ...
4
votes
1
answer
71
views
How to get PID from AudioObjectID on macOS pre Sonoma
I am working on an application to get when audio device is being used.
This app runs on macOS.
For Mac versions starting from Sonoma I can use this code:
int getAudioProcessPID(AudioObjectID process)
...
1
vote
1
answer
93
views
Alternative to sizeToFit to space items on toolbar assigned to keyboard inputAccessoryView?
I have created a toolbar and attached it as an inputAccessoryView to the keyboard following Paul Hudson's snippet here.
This is a legacy project with some Objective-C and I have converted Paul's code ...
0
votes
0
answers
146
views
iOS Dylib crashes when published to testflight with CODESIGNING 2 Invalid Page
This is a lengthy one. I have basically compiled a Rust binary into a dylib and packaged into a .xcframework that contains per arch .frameworks. This loads correctly when run from Xcode into a real ...
0
votes
0
answers
103
views
NSSavePanel ignores setDirectoryURL: on macOS Sequoia (15), always opens at last-used location
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 ...
1
vote
0
answers
41
views
Why are some SKView SpriteNodes moving jerkily with motionManager
I am working on an Xcode app that uses a Collection View Controller to display images of various animals. When one of the images is touched a GameView (SKView) opens. Each GameView has balls(sprites)...
1
vote
1
answer
70
views
CAMetalLayer nextDrawable Method is Unbearably Slow in MacOS Metal
The following code renders a scene: (It's called from within an @autorelease nesting)
- (void)setupEncoder:(nonnull MTKView *)view {
id<MTLCommandBuffer> commandBuffer = nil;
id<...
-1
votes
1
answer
201
views
Why KVO has no response while the rest of the code seems to work and runs without any error
// Inside root view controller
- (void) play_test_video {
g_video_test = [AVPlayer playerWithURL : file_url];
g_video_controller = [[AVPlayerViewController alloc] init];
...
0
votes
0
answers
52
views
How to access classes, methods and send parameters from native iOS to the KMP app?
When I start the iOS app, I want to send parameters from Firebase to my KMP project.
I put annotations in the KMP Kotlin class so that it would be visible, the bridge class that is generated in ...
0
votes
0
answers
75
views
How to implement reusable MTLBuffer pool in Metal programming?
In my mac application, I have a business requirement: When drawing each frame, hundreds or even thousands of small bitmaps are received from the network transport layer. Then I need to bitblit these ...
0
votes
1
answer
77
views
How to Dynamically Load Images from a Nested Folder in the App Bundle (Swift / iOS) [duplicate]
I hope you're all doing great!
I'm working on an iOS app where I need to load a set of images that I've added manually to the app's resource bundle. The images are stored inside a known top-level ...
0
votes
0
answers
52
views
Calling ARC code from non-ARC code causing EXC_BAD_ACCESS when autorelease pool drains
void test(void) {
@autoreleasepool {
NSDictionary *dict = copyDict();
NSLog(@"%lu", [dict retainCount]);
[dict release];
}
}
int main (int argc, const char * ...
1
vote
1
answer
110
views
Failed to preview widget with CHSErrorDomain (1300):NSDebugDescription: extensionNotFound
When I added the widget extension to a multi-target project, the widget preview failed with an error saying Cannot preview in this file.
As we all know, the widget was introduced in iOS 14.0, but my ...