View Single Post
  #1  
Old October 26th, 2005, 01:55 PM
boyfarrell boyfarrell is offline
Registered User
 
Join Date: Jun 2005
Location: London, UK.
Posts: 278
Thanks: 0
Thanked 0 Times in 0 Posts
boyfarrell is on a distinguished road
fatal error: method definition not in @implementation context

Hi everybody,

Compiler spits out two lines (i) saying " ChemicalPotential.m:1: error: parse error before 'ChemicalPotential' " (where ChemicalPotential is the name of my class). And (ii) ChemicalPotential.m:1: fatal error: method definition not in @implementation context .

I managed to solve the problem by changing the one of the methods arguments datatype to id. Any ideas why that fixed it?

I've not posted my code up because it's a very big class. Just wondering if any of the above sounds familiar?

Daniel
Reply With Quote