0
votes
Two small Core Foundation tips
Delphi Haven
– Core Foundation is a straight C, yet object-orientated API layer of OS X. Here’s a couple of small tips: 1. Much of the source for Core Foundation is freely available, so if you’re wondering whether a CFArray will retain its items on creation (for example), wonder no more (http://opensource.apple.com/source/CF/). 2. The CFArrayCreate function takes a pointer to a record that contains a series of callback functions. If the array will be an array of other Core Foundation types, the docs say you should pass a pointer to kCFTypeArrayCallbacks. Do this in Delphi however, and the ...
Statistics
|
Visits by Source |
User Actions |




