On Thu, Mar 27, 2008 at 9:44 AM, Nick Rogers <[EMAIL PROTECTED]> wrote:
> are we allowed to do that in a cocoa proj. > if so how do we declare the class. > > Is it like? > > class MyClass > { > > } > > this is throwing error at the first line: parse error before > 'MyClass' token To compile a file as Objective-C++, you need to give it a .mm extension instead of .m. See also: < http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_12_section_3.html > sherm-- _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]