Foundation and CoreFoundation
Foundation and CoreFoundation
- Subject: Foundation and CoreFoundation
- From: Robert S Goldsmith <email@hidden>
- Date: Wed, 05 Sep 2001 15:35:32 +0100
Hi :)
I have not played much with either of these frameworks as
I'm only just learning stuff but it seems to me that
CoreFoundation is a pretty wrapper for the old BSD stuff -
plus a useful interface to IOKit stuff. It is also present
in CarbonLib so I assume it covers many of the bits of OS X
that needed to be re-worked to work in os 9 so apps could
run in both.
I only very very briefly touched on CoreFoundation when
doing USB stuff. It's needed to access and work with the
Mach usb driver dictionary and to write such drivers. Also,
CFRunLoopRun is a useful eventloop system based on callbacks
for asynchoronous use of ports that is a serious improvement
on the old BSD stuff :)
I don't actually know if there is a Cocoa way to do the usb
stuff - maybe there is - I just followed apple's example code :)
Robert