Re: Objective-C++
Re: Objective-C++
- Subject: Re: Objective-C++
- From: Brian Bergstrand <email@hidden>
- Date: Thu, 8 Apr 2004 18:04:16 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You need to rename "MyController.m" to "MyController.mm" so the
compiler knows to activate ObjC++.
HTH.
On Apr 8, 2004, at 5:14 PM, David Piasecki wrote:
>
>
// MyController.m
>
#import "TestCC.h"
>
@implementation MyController
>
>
- (IBAction)MyButtonClicked:(id)sender{ }
>
-----------------------------------------------------------
>
// MyController.h
>
#import <Cocoa/Cocoa.h>
>
@interface MyController : NSObject {
>
}
>
- (IBAction)MyButtonClicked:(id)sender;
>
@end
>
>
>
I've read what I could find online, and this seems to be the way to do
>
it, but XCode's not agreeing with me.
>
Brian Bergstrand <
http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <
http://www.bergstrand.org/brian/misc/public_key.txt>
I'm proud to pay taxes in the United States; the only thing is, I could
be just as proud for half the money. - Arthur Godfrey
As of 06:00:23 PM, iTunes is playing "Spoon" from "Before These Crowded
Streets" by "Dave Matthews Band"
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
iQA/AwUBQHXMZXnR2Fu2x7aiEQJDTQCgvtU+/zq6gUTOQWFxmSbuXVqbdfIAnRFv
Vo7eusrzagc/GEp0a7gv10n7
=bOSj
-----END PGP SIGNATURE-----
_______________________________________________
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.