• 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
Re: C/Obj-C API Confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C/Obj-C API Confusion


  • Subject: Re: C/Obj-C API Confusion
  • From: Charles Steinman <email@hidden>
  • Date: Wed, 10 Sep 2008 15:05:38 -0700 (PDT)

--- On Wed, 9/10/08, J. Todd Slack <email@hidden> wrote:

> So if I have an objective C class, how can I call a .c
> class? and pass
> my arguments from the objective-c class?

C doesn't have classes. That's almost the entire difference between it and Objective-C. Have you called NSLog? NSMakeRect? Then you've called a function, just like in C. If you're fuzzy on C, there are scads of tutorials on it around the Web. Cocoa Dev Central has one especially for using C with Cocoa:

http://cocoadevcentral.com/articles/000081.php

Cheers,
Chuck



_______________________________________________

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

References: 
 >Re: C/Obj-C API Confusion (From: "J. Todd Slack" <email@hidden>)

  • Prev by Date: mailbundle info
  • Next by Date: NSTableView selection Delegate Methods being called twice?
  • Previous by thread: Re: C/Obj-C API Confusion
  • Next by thread: Re: C/Obj-C API Confusion
  • Index(es):
    • Date
    • Thread