• 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: Foundation vs Core Foundation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Foundation vs Core Foundation


  • Subject: Re: Foundation vs Core Foundation
  • From: Dave Keck <email@hidden>
  • Date: Mon, 29 Nov 2010 15:17:56 -0500

> Before I start down the wrong path: What is the difference between a Foundation
> tool and a Core Foundation tool? Primarily I will be needing to use TCP/IP
> sockets, file I/O, and multithreading, so is one a better fit than the other? I
> believe OSX calls this type of GUI-less background process a 'daemon'. This
> would be for Snow Leopard.

CoreFoundation is a general-purpose C framework whereas Foundation is
a general-purpose Objective-C framework. Both provide collection
classes, run loops, etc, and many of the Foundation classes are
wrappers around the CF equivalents. CF is mostly open-source (see
http://opensource.apple.com/source/CF/CF-550.42/), and Foundation is
closed-source.

Typically there's little reason to confine oneself to CF as it'll only
make your life more difficult. The only exception is when security is
a concern; I'm not sure what the current recommendation is on linking
Foundation from a process that runs as root (although I believe some
of Apple's software does this.) Will your daemon be running as root?
_______________________________________________

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: Foundation vs Core Foundation
      • From: Jon Sigman <email@hidden>
References: 
 >Foundation vs Core Foundation (From: Jon Sigman <email@hidden>)

  • Prev by Date: Re: Foundation vs Core Foundation
  • Next by Date: Re: Foundation vs Core Foundation
  • Previous by thread: Re: Foundation vs Core Foundation
  • Next by thread: Re: Foundation vs Core Foundation
  • Index(es):
    • Date
    • Thread