Re: interfacing c++ and cocoa/aqua
Re: interfacing c++ and cocoa/aqua
- Subject: Re: interfacing c++ and cocoa/aqua
- From: Art Isbell <email@hidden>
- Date: Fri, 6 Jul 2001 14:08:11 -1000
On Friday, July 6, 2001, at 10:32 AM, Nathaniel Martin wrote:
We have a c++ backend and we want to put an aqua front end on it.
The c++ needs to be passed mouse and keyboard events, and it
would return bitmaps.
We want to display the bitmaps to screen as quickly as possible.
What would be the best way to interface this? Can I call cocoa
methods from c++? Can I call c++ functions from cocoa?
You might want to wait for the ObjC++ functionality to be
added back to Cocoa (it was promised at the WWDC, I believe).
That will allow you to mix Objective-C and C++ in the same
source. You'd want to write ObjC++ Controller classes that
would convert events from Objective-C View objects to a form
needed by your C++ Model objects and that would receive a
bitmaps from C++ Model objects and send them to Objective-C View
objects to display.
Art Isbell
Apple iServices Technical Support
http://www.apple.com/iservices/webobjectssupport/
+1-808-591-0836