Re: C++ framework <-> Cocoa
Re: C++ framework <-> Cocoa
- Subject: Re: C++ framework <-> Cocoa
- From: "Dennis C. De Mars" <email@hidden>
- Date: Tue, 05 Jun 2001 07:52:35 -0700
In theory, it should be possible to do this, although it would be a big
pain. You'd have to write some Objective C code that passed the selectors
back to the C++ code, then call the Objective C runtime method dispatcher to
actually execute it. You'd have to link to the right libraries to get the
Objective C runtime in there. And you'd have to understand how Objective C
works to get this to work.
Frankly, I think this is more trouble than it is worth. Apple appears to be
committed to bringing back the Obj-C++ capability of their compiler. That
means, in a future version, you will be able to mix Objective C and C++ code
in the _same_ source file. This will enable you to do exactly what you want,
so if you can possibly wait for that to be available, that's your best
option.
- Dennis D.
on 6/5/01 1:51 AM, Laurent Pontier at email@hidden wrote:
>
Hello,
>
>
Pardon me if this was already discussed on this list...
>
>
I'm trying to connect some C++ classes
>
from a framework I have, defining windows/views/buttons/etc,
>
to the Cocoa framework... and, well, it's not working at all.
>
>
Since there is no ObjectiveC++ available I try to do that
>
using some C functions but I always end with missing
>
symbols.
>
>
I don't want to start a ObjC vs C++ holy war here but
>
if one of you already did something like that I'll
>
greatly appreciate some help or any link to relevant
>
information on this subject.
>
>
Thanks,
>
Laurent
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev