| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Jim
The only difficulties that we faced with this approach was how to call Cocoa functions from C to trigger OpenGL context switching, since
changing all the .c extensions to .m was not an option.
My most recent cross-platform framework (not for iPhone) uses a small number of .mm files (Objective-C++), to help bridge the Cocoa side and the platform-agnostic C++. It's surprisingly easy to mix Objective-C and C++ in the same file.
The only problem is in header files -- while a .mm file can include something that uses both dialects, a .cpp file can't.
Cheers,
--Dave
_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden
| References: | |
| >Re: Carbon iPhone Programming (From: David Dunham <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.