Re: Obj-C with C problems
Re: Obj-C with C problems
- Subject: Re: Obj-C with C problems
- From: Daniel Gregg <email@hidden>
- Date: Wed, 23 May 2001 23:16:33 -0500
Disregard this for now. The below will compile if split out into
separate files. I'm having other problems. PLEASE IGNORE FOR NOW.
On Wednesday, May 23, 2001, at 10:32 PM, Daniel Gregg wrote:
>
This may well be a bone-head question but I keep fighting with massive
>
errors. Look at the code below and tell me why it will not compile if
>
the red lines are in a separate .c file: I'm using PB with a standard
>
"new Cocoa" project default settings. I simply wanted to create some C
>
routines in a separate file but evidently I can't?
>
>
#import "MyObject.h"
>
#import <Carbon/Carbon.h>
>
void makenoise(void);
>
>
@implementation MyObject
>
>
- (IBAction)startCapture:(id)sender
>
{
>
makenoise();
>
}
>
>
- (void)awakeFromNib
>
{
>
makenoise();
>
}
>
@end
>
>
void makenoise (void)
>
{
>
SysBeep(2);
>
}