Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ related issues



> 1. I would like to know whether there is a way to integrate existing C++
> code to Cocoa or Carbon framework (without touching the code core but maybe
> only its outside envelope, if at all), such that we could benefit from
> Cocoa/Carbon user-interface and other capabilities, but at the same time
> will not have to migrate/port/translate our main code to objective C or
> Java.

Sure. It's a fairly common approach. For the UI, Cocoa is highly productive.
For the back end, well, depends on your application. I use C++ for my ORM
layer, because that best fit my design.

> 2.  Does x-code have automatic code generation to C++ (as it has for
> objective-C when using the data model tool, under core data cocoa
> project/application).

No, and it wouldn't really make sense because Core Data is a
Cocoa/Objective-C framework. If you have your own data model based on C++,
then you would need your own code generator. If you're talking about
automating generation of classes to intermediate between the UI and you
existing C++ code, that's something you'd have to write...


-- 
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >C++ related issues (From: Sigalit Hed <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.