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: Obj-C in C++ code



Thanks you guys, turns out that I needed to take the Cocoa.h reference out of my header file.  Compile errors are gone now I just have to work on that functionality thingie.

Thanks again

dave

On May 15, 2005, at 2:16 AM, Sherm Pendley wrote:

On May 15, 2005, at 2:43 AM, David Rogers wrote:


Hi all, I've been trying like hell to get this to work with no luck.  I've been trying to use some of Apple's sample code as a starting point for drawing fonts in a GL context (like GLString in the NSGLImage sample).  But I'm wanting to call those functions from within a c++ class.


Easy answer first - you need to give the file a .mm extension for it to be compiled as Objective-C++.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org



"Worrying is like a rocking chair, it gives you something to do but you don't get anywhere." - Van Wilder


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

This email sent to email@hidden

References: 
 >Obj-C in C++ code (From: David Rogers <email@hidden>)
 >Re: Obj-C in C++ code (From: Sherm Pendley <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.