• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
objective-c newbie type question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: objective-c newbie type question
      • From: Keith Ray <email@hidden>
    • Re: objective-c newbie type question
      • From: Lucas Eckels <email@hidden>
  • Prev by Date: NSArrayController - Mutability lost?
  • Next by Date: Re: objective-c newbie type question
  • Previous by thread: Re: NSArrayController - Mutability lost?
  • Next by thread: Re: objective-c newbie type question
  • Index(es):
    • Date
    • Thread