Re: NewCommer -win32 to cocoa
Re: NewCommer -win32 to cocoa
- Subject: Re: NewCommer -win32 to cocoa
- From: Troy Dawson <email@hidden>
- Date: Fri, 24 Oct 2003 03:54:10 -0700
On Oct 24, 2003, at 1:32 AM, Waseem Ashraf wrote:
>
Hi,
>
>
I started learning cocoa this week, as in our office we need to
>
rewrite our
>
win32 application for mac users.
>
I want to know how can I use my c++ classes, which uses a lot virtual
>
functions, in cocoa application.
You can easily combine Objective-C and C++ when you use .mm suffix
source files (instead of .m, which only gives you C-99 support).
Objective C is orthogonal to C++ -- you can mix them freely, but the
two languages don't interact at all.
>
Secondly can I pass the objective c class
>
inherited from view to my c++ classes as a parameter.
Sure, id is defined as a pointer to struct:
typedef struct objc_object {
Class isa;
} *id;
in objc.h.
>
Have you got any other thoughts as i don't want to rewrite my c++
>
classes in
>
objective c.
Make sure you have the latest developer tools ("X-Code"), for they
handle C++ better than the 10.2.x tools.
=td=
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.