[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Attempting to Create Obj-C Gecko Framework

From: Brian Powell
Subject: Re: Attempting to Create Obj-C Gecko Framework
Date: Tue, 10 Apr 2001 10:13:08 -0600

On Tuesday, April 10, 2001, at 12:29 AM, Richard Dale wrote:

I'm doing the wrappers for KDE/Qt/C/Objective-C. I have a pair of source
convertors, one to convert C++ headers to C .h and .cpp files, and the other to convert the same headers to the matching Objective-C .h and .m files. How many
headers/classes/methods are there in the gecko C++ api?

I'll investigate this more and get back with you. I'm still working on feasibility, direction, etc.

They have a hard coded 'type translation table' of the Qt/KDE C++ types and their C/Objective-C mappings, which you would need to adapt for wrapping Gecko. Please email me if you would like the two converters, and I can send them as attachments c. 100k each (they are written in perl, adapted from the 'kdoc' documentation tool). They aren't checked into the KDE CVS yet, but should be in
a couple of weeks in time for 2.2.

I would love to get each of those, even if for no other reason as a great educational experience. Thank you, I appreciate your help.

Another technical issue is, if you instantiate an instance in the C++ world, and
then it is subsequently referenced in the Objective-C world you need to
automatically create an instance. Then, at '- dealloc' time you need to make sure you don't free those sort of instances, because the C++ code would expect
to be responsible for freeing them. Only C++ instances created as a
result of alloc/init'ing an Objective-C instance directly should be freed then.

Thank you for the tip, I'll keep that in mind. I assume that there is cross-communication in your wrapper to Qt? By that I mean that ObjC can invoke C++ methods (of existing objects) and vice-versa?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]