Using C?
Using C?
- Subject: Using C?
- From: <email@hidden>
- Date: Wed, 13 Jun 2001 15:10:50 -0600 (MDT)
How much C can one use in an Objective-C program and what are the
limitations? I've included a straight C based method in an app I'm
writing -- side by side with my Objective C methods -- and it seems to
work without too many problems.
The only real problem I've experienced with my C method is that it seems
unable to call methods of access variables in the same object. Calling
stuff like [self: doSomething] within the C method results in the warning
"self undeclared." Is it not possible to mix up C and Objective-C like
this? Also, for example, any variables declared in the header file for
the object are also inaccessable in the C function/method.
Perhaps this all common knowledge! I hadn't previously tried to mix any C
stuff like this into a Cocoa based app and just sort of dove in head
first. The results have been mixed! =)
Thanks!