What is the best way to port from Objective-C to C++?
2012-10-19 09:25
609 查看
What is the best way to port from Objective-C to C++?
GNUStep dependency if you're one of the few people using Objective-C on an OS besides OS X)? If so, the easiest approach is to useObjective-C++
to build a bridge beteen the Objective-C and C++ code. Objective-C++ is an Apple extension to Objective-C and the GCC compiler that allows you to mix Objective-C and C++ code. You can thus create Objective-C objects that call or reference (but not inherit
from) C++ objects and you can send Objective-C messages to Objective-C instances from within C++ code.
I worked on same problem. And have some solutions: In 2007 I tried support Objective-C in Visual Studio and write my own ObjC runtime, but I do not have more time for writing parser for it. If you have, you can :) http://code.google.com/p/qobjc/ I write basic functionality of Foundation Framework written on C++, in this case need port manually, your code will be on C++ but it will be like on Objective-C. This library worked on iPhone. http://code.google.com/p/dcocoa/ |
相关文章推荐
- What is the best way to implement a heartbeat in C++ to check for socket connectivity?
- What are the best ways to determine what port an application is using?
- What is the best way to calculate a checksum for a file that is on my machine?
- what is the best way to reduce stress?
- What is the best way to paginate results in SQL Server
- What is the best way to create a good interface to an abstraction?
- The best way to avoid disappointment is to not expect anything from anyone!
- The best way to be "right once" is to have the ability to envision what things are going to look like three weeks, three months
- What is the best way to handle Invalid CSRF token found in the request when session times out in Spring security
- The Best Way to Cheer Yourself is to Cheer Somebody Else. Keep Smiling!
- What is the correct way to completely remove an application?
- What is the best free memory leak detector for a C/C++ program and its plug-in DLLs
- know how it works is the best way to understand all
- What is the simplest way to distribute a .NET COM server to any platform?
- What is the best alternative to KAT?
- What is the fastest, case insensitive, way to see if a string contains another string in C#?
- 005:What's the best way to iterate over the items in a HashMap?
- What is the C# equivalent to C++ OutputDebugString?
- The best way to predict the future is to invent it,预测未来最好的方法是创造它!
- What is the proper way to bind Nullable DateTime property to DateTimePicker?