• 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
Using C?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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!


  • Prev by Date: Re: Cocoa, a complete Mac OS X API?
  • Next by Date: Re: Programmatic Windows
  • Previous by thread: Re: WWDC Developer Tools Online - install problem
  • Next by thread: Re: Using C?
  • Index(es):
    • Date
    • Thread