• 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
C functions and instance variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C functions and instance variables


  • Subject: C functions and instance variables
  • From: Trygve Inda <email@hidden>
  • Date: Fri, 28 Mar 2008 09:14:32 +0000
  • Thread-topic: C functions and instance variables

I have a Cocoa object with .m and .h files and need to include in this a
series of about 30 C functions which all all in their own .c file. Is it
possible to give functions in the .c file access to the .m files instance
variables?

How can I do this without rewriting the .c functions as Obj-C?

Also, is there a way to use two .m files for one object so that all my code
doesn't have to be in one file? Can I just #import one .m file into the
other?

Thanks,

Trygve


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: C functions and instance variables
      • From: "Hamish Allan" <email@hidden>
  • Prev by Date: Re: Core Data/IB questions
  • Next by Date: Re: A Tab after 4 SPACEs
  • Previous by thread: embed screen sharing in a cocoa app?
  • Next by thread: Re: C functions and instance variables
  • Index(es):
    • Date
    • Thread