Linked Questions
32 questions linked to/from Calling Objective-C method from C++ member function?
67 votes
8 answers
46k views
Will my iPhone app take a performance hit if I use Objective-C for low level code?
When programming a CPU intensive or GPU intensive application on the iPhone or other portable hardware, you have to make wise algorithmic decisions to make your code fast. But even great algorithm ...
18 votes
3 answers
3k views
Is it safe to use #ifdef guards on C++ class member functions?
Suppose you have the following definition of a C++ class: class A { // Methods #ifdef X // Hidden methods in some translation units #endif }; Is this a violation of One Definition Rule for the class? ...
12 votes
4 answers
16k views
Writing a C++ Wrapper around Objective-C
I want to call and work with Objective-C classes from within a C++ project on OS X. It is time to start moving towards all Objective-C, but we need to do this over some time. How does one go about ...
8 votes
1 answer
5k views
Managing objective-C objects with c++ std::unique_ptr<> or std::shared_ptr<>
Objective-C can be mixed with c++ to some extent and can be called to each other. But Objective-C objects still are more or less manually managed, and RAII idiom is entirely absent from the language. ...
4 votes
2 answers
7k views
Calling an Objective-C class method from C++
I am having some trouble calling an objective-c class method from a C++ file. Example: In my .h: @interface MyClass : NSObject { } + (void)myMethod:(NSString *)str; In my .m: + (void) myMethod:(...
8 votes
3 answers
7k views
Pure C function calling Objective-C method?
Okay, I've read half a dozen threads on this subject, but none of the solutions appear to address exact needs. Question: How does a Pure C (.c) function call a method inside a Pure Objective-C (.m) ...
7 votes
5 answers
1k views
Call C methods from C++/Java/C# code?
Many of today's programming languages are based on C; like C++, C#, Java, Objective-C. So could I call a C method from C++ code? Or call C from Java or C#? Or is this goal out of reach and ...
4 votes
4 answers
6k views
How to use iOS framework with Unity?
I'm trying to use an iOS native framework inside Unity, but I don't know how. Inside my C# script, I call a native function like this : [DllImport ("__Internal")] private static extern void ...
4 votes
3 answers
7k views
apple's property list (plist) implementation in c++
I'm tasked with reading Apple's property list files within a c++ application. Focusing primarily on the xml-type plist files specified in OS X, which mimic a xml-type implementation.. Apple's ...
3 votes
3 answers
2k views
How can I use the Berkeley DB within an iOS application?
I would like to use the Berkeley DB within an iOS application, but I'm not sure how to go about this. How do you integrate the Berkeley DB within an iOS project? How do you communicate with it via ...
4 votes
1 answer
2k views
Using (OSX) Core MIDI in a c++ project
Here is the (Objective C) documentation for Core Midi: https://developer.apple.com/documentation/coremidi How can I learn what is expected of me to be able to utilize this in a C++ project? (I guess ...
3 votes
5 answers
673 views
Language for iOS development [duplicate]
What all languages are supported for iOS application. Is it only objective-C? Thanks
3 votes
3 answers
1k views
Raise an NSDecimalNumber to a negative power
I need an equivalent to C's pow() function that will work with NSDecimalNumbers. With pow you can use negative numbers e.g. pow(1514,-1234), with NSDecimal's decimalNumberByRaisingToPower: method, you ...
1 vote
1 answer
3k views
Calling Objective-C method from C++ method? [2]
i found a great post Calling Objective-C method from C++ method? however, i have to 2 questions, which makes me overcoming this issue very problematic : note that i have made a change to MyObject-C-...
4 votes
1 answer
2k views
How do I add Objective C code to a FireBreath Project?
I am writing a browser plugin for Mac OS that will place a status bar icon in the status bar, which users can use to interface with the browser plugin. I've successfully built a FireBreath 1.6 ...