objective-c newbie type question
objective-c newbie type question
- Subject: objective-c newbie type question
- From: Aaron Boothello <email@hidden>
- Date: Sat, 16 Apr 2005 22:07:26 +0800
Hey guys,
Thanks for your help on my previous querry.
Alright, so im porting some c++ code.
I'm sure this is a syntax issue:
there's a header file(with an associated '.m' file called 'utilities.h' and 'utilities.m'
utilities.h contains typedef declerations and some #define macros.
Along with some basic function, such as matrix multiplications,etc....
----------------------------------------------------
#ifndef _UTIL_H_
#define _UTIL_H_
#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
typedef double matrix[16];
.
.
-(void)multilyMatrices:(matrix*)m:(matrix*)n;
.
.
#endif
------------------------------------------------------
utilities.m:
#import "utilities.h"
-(void)multilyMatrices:(matrix*)m:(matrix*)n
{
.
.
}
-----------------------------------------------------
error returned:fatal error:method definition not in class context
so how would i go about fixing this ?
Thanks,
Aaron
P.S.>> ive only used objective-c with cocoa programming, so im not entirely familar with whats outside that scope. so please forgive my questions of this kind :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden