I would like to build a simple interface around some c-code I have. I've spend over two hours now on a seemingly simple problem with Objective C.
It simply seems impossible to call an Objective C function from within a normal c function. If I do, for example:
void changeInfo()
{
[TextField setIntValue:test];
}
I get an error that says "Use of undeclared identifier 'TextField'". Whereas if this piece of code would be like this:
- (void) changeInfo
{
[TextField setIntValue:test];
}
... it would work perfectly fine.
What am I doing wrong...?
It simply seems impossible to call an Objective C function from within a normal c function. If I do, for example:
void changeInfo()
{
[TextField setIntValue:test];
}
I get an error that says "Use of undeclared identifier 'TextField'". Whereas if this piece of code would be like this:
- (void) changeInfo
{
[TextField setIntValue:test];
}
... it would work perfectly fine.
What am I doing wrong...?