Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [objective-c]

This tag should be used only on questions that are about Objective-C features or depend on code in the language. The tags [cocoa] and [cocoa-touch] should be used to ask about Apple's frameworks or classes. Use the related tags [ios], [macos], [apple-watch] and [tvos] for issues specific to those platforms.

-1 votes
0 answers
38 views

Is there a way to force an NSObject to be allocated in stack or static memory?

I am asking this out of curiosity, because even if this can technically be done, this is almost certainly unsupported by Apple. As far as I can tell, only NSString literals, and possibly NSDictionary ...
CPlus's user avatar
  • 4,374
0 votes
0 answers
29 views

Can we customize how parameters and return types are imported from Objective-C into Swift?

I have an Objective-C class that is a proxy to an NSDictionary. @interface DictionaryProxy : NSProxy -(id)objectForKey:(id)key; -(void)setObject:(id)obj forKey:(id<NSCopying>)key; @end I have ...
F. S.'s user avatar
  • 13
-1 votes
0 answers
55 views

SwiftUI Scroller flashing entire collection when inserting new data

I Have a SwiftUI view which is a collection that displays each item on a full screen sized view. While the user is viewing and interacting with the items (it's a view that shows photo or video that ...
Mev's user avatar
  • 1,583
1 vote
0 answers
36 views

Unable to mount NFS share using mount(2) on macOS

I've been trying to write an application for older versions of Mac OS X that mounts an NFS network share and ran into an interesting quirk when trying to use the mount(2) function. According to the ...
Nathan Campos's user avatar
0 votes
0 answers
49 views

Generating a signature for promotional offers in Objective-c

My requirements are to generate a signature for a promotional offer in the iOS app code (Objective-C), but I'm getting nil every time with the error: 'The operation couldn’t be completed. (OSStatus ...
Umesh Y's user avatar
  • 71
0 votes
0 answers
38 views

How can I initiate a new URL request using an already loaded WKWebView?

I have opened a WKWebView with "https://www.google.com", for example. After that, I put my app in the background. When I try to open a new URL request in the same web view with a new link, ...
Chaithra's user avatar
1 vote
0 answers
35 views

Broken `static_cast` from `NSURL*` to `CFURLRef`

Consider the code at the bottom. I am convinced it’s broken and should not compile. Line 224 has a static_cast from NSURL* to CFURLRef with no bridging which I believe will break the reference count. ...
xcvii's user avatar
  • 470
0 votes
0 answers
33 views

Build input file cannot be found and xcode is searching file at wrong path after pod install

i am getting this error after pod install in xcode error: Build input file cannot be found: '/usr/lib/libstdc++.6.0.9.dylib'. Did you forget to declare this file as an output of a script phase or ...
vinayak tudayekar's user avatar
0 votes
0 answers
15 views

microsoft.identitymode.tokens.audienceurivalidationfailedexception was thrown while trying to open One Drive document in WKWebView in iOS app

I am working in iOS app needs to be opened One Drive attachments in WKWebView. Sample One Drive document is https://\*\*\*.sharepoint.com/personal/\*\*\*\*\*\_onmicrosoft_com/\_layouts/15/Doc.aspx?...
Sanjay Borkakoty's user avatar
-1 votes
0 answers
25 views

Fetching data while UITableView Scroll

I have caught up in specific situations and cannot find a proper solution. I have historic data and details are getting fetched via API1 and details are displayed in TableView e.x Name - Phone No ...
Meluha's user avatar
  • 1,534
0 votes
0 answers
33 views

Issue with nullability specifiers in Xcode when developing Flutter app

I'm developing a Flutter application and encountering an issue with nullability specifiers in Xcode. Specifically, I have methods in my Objective-C files where Xcode is reporting conflicts with ...
Whirley Paul's user avatar
0 votes
0 answers
40 views

How do I replace detail view controller navigation stack when presenting

I'm working with a UISplitViewController that's using some storyboards but now moving to programmatic presentation (which is what I'm familiar with). I have a VC that's currently presenting as a push, ...
Nicole Maguire's user avatar
0 votes
1 answer
42 views

Calling NSApplication from Rust using objc

I am trying to learn by doing a project of allowing AppKit certain functions , related with App and Window creation to be called from Rust using objc. extern crate objc; use objc::runtime::{Class,...
user655941's user avatar
0 votes
0 answers
52 views

SQLCipher "file is not a database" Error After Updating iOS App

I'm encountering an issue with SQLCipher in my iOS app after updating to a new version, which involves different workspaces of my app. The app uses SQLCipher(version: 3.1) to manage an encrypted ...
bAthi's user avatar
  • 351
0 votes
1 answer
27 views

Kotlin Multiplatform objective-c export file name convention

What logic is used to create class and protocol names when Kotlin code is exported to Objective-C? Additionally, where can I find detailed information about this process? Where code like: package ...
GuilhE's user avatar
  • 11.8k

15 30 50 per page