141 questions from the last 365 days
0
votes
0
answers
28
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
vote
1
answer
75
views
Swift/objc interoperability and modern swift concurrency
How to resolve error:
Non-Sendable parameter type BookInfo of actor-isolated @objc instance method cannot cross actor boundary?
BookStore.swift:
// manage state of instances of BookInfo
@objc actor ...
-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 ...
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 ...
4
votes
2
answers
157
views
Strange NSScrollPocket height on my NSTableView in fullscreen mode on macOS Tahoe 26
Since I updated on macOS Tahoe 26, in fullscreen only, my NSTableView in Objective-C has the first two rows hidden by a blurred rectangle which appears at the level of my NSScrollView with an ...
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 ...
2
votes
0
answers
81
views
How can I fetch the tinted folder icon in macOS Tahoe using Cocoa?
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 ...
0
votes
0
answers
45
views
How to detect Bluetooth device name/alias changes on macOS using IOBluetooth
I am developing a macOS app using IOBluetooth.framework.
I simply want to keep a list of paired devices with up-to-date names.
I want to detect when a user renames a paired Bluetooth device (the alias)...
-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, ...
1
vote
1
answer
215
views
UIBarButtonSystemItemDone shows blue checkmark and doesn't respect apperance's `tintColor` under iOS26
Creating a simple UIBarButtonItem on iOS26:
UIBarButtonItem *saveButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
...
1
vote
0
answers
51
views
Unexpected crash on Tauri related to objective c and c++ bridge
Basically, I am puzzled by this crash I am getting.
For context, I am running a Tauri app for a multi platform desktop app (windows and mac). My windows part works perfectly using winsocks, however I ...
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 ...
0
votes
1
answer
116
views
How to let a UIView handle a tap gesture then have the tap gesture passed down to another UIView lying beneath?
The documentation says set:
recognizer.cancelsTouchesInVew = NO;
and add the recognizer to the top view.
I tried and it does not work.
Below is the code pattern I used:
UIView *custom_overlay_1 = [[...
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<...
0
votes
1
answer
94
views
How to disable default resizing behavior for an NSWindow?
I have implemented my resizing behavior for an NSWindow. The problem is I don't know how to disable the default resizing behavior. For example, a resizing cursor would been shown when the cursor was ...
-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
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
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 * ...
0
votes
2
answers
61
views
Invisibly block user interaction in macOS app
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 ...
1
vote
0
answers
53
views
Creating RTP-MIDI Sessions via MIDINetworkSession C API (dlopen/dlsym) on macOS 15?
I’m an amateur developer working on a free utility for composers/producers, for which the macOS release needs to create and name RTP-MIDI sessions in Audio MIDI Setup from the command line (so I can ...
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 ...