Linked Questions

67 votes
8 answers
46k views

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 ...
slf's user avatar
  • 22.8k
18 votes
3 answers
3k views

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? ...
user1668604's user avatar
12 votes
4 answers
16k views

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 ...
JTO's user avatar
  • 121
8 votes
1 answer
5k views

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. ...
diffeomorphism's user avatar
4 votes
2 answers
7k views

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:(...
Asheh's user avatar
  • 1,617
8 votes
3 answers
7k views

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) ...
Mark Löwe's user avatar
7 votes
5 answers
1k views

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 ...
Mohit Deshpande's user avatar
4 votes
4 answers
6k views

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 ...
Benjamin Gimet's user avatar
4 votes
3 answers
7k views

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 ...
cyrix's user avatar
  • 308
3 votes
3 answers
2k views

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 ...
Poet Sonata's user avatar
4 votes
1 answer
2k views

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 ...
Phildo's user avatar
  • 1,066
3 votes
5 answers
673 views

What all languages are supported for iOS application. Is it only objective-C? Thanks
macdev30's user avatar
  • 245
3 votes
3 answers
1k views

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 ...
james_womack's user avatar
  • 10.4k
1 vote
1 answer
3k views

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-...
Peter Lapisu's user avatar
  • 21.2k
4 votes
1 answer
2k views

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 ...
jamesmortensen's user avatar

15 30 50 per page