core-foundation
CoreFoundation Lite on Linux and Android
I would like to use Apple\'s CoreFoundation library on linux and android. The source code is available here, but there is very little documentation on how to build it on Linux.As far as I could figure[详细]
2023-01-02 07:35 分类:问答Core Foundation equivalents for NSURLRequest and NSURLConnection
I\'m aware that NSUrl is bridged to CFUrl. What are the Core Foundation equivalents for NSURLRequest and NSURLConnection so I can do something with a CFU开发者_开发技巧rl object using pure C?There are[详细]
2022-12-31 00:06 分类:问答Objective-C: Getting the True Class of Classes in Class Clusters
Recently while trying to answer a questions here, I ran some test code to see how Xcode/gdb reported the class of instances in class clusters. (see below) In the past, I\'ve expected to see something[详细]
2022-12-30 15:32 分类:问答How to resolve CGDirectDisplayID changing issues on newer multi-GPU Apple laptops in Core Foundation/IO Kit?
In Mac OS X, every display gets a unique CGDirectDisplayID number assigned to it.You can use CGGetActiveDisplayList() or [NSScreen screens] to access them, among others.Per Apple\'s docs:[详细]
2022-12-30 14:22 分类:问答Safe way of iterating over an array or dictionary and deleting entries?
I\'ve heard that it is a bad idea to do something like this. But I am sure there is some rule of thumb which can help to get that right.[详细]
2022-12-29 18:19 分类:问答How do I get a bundle reference from inside of a plugin with carbon?
I\'m writing a C++ plugin in Mac OS X using the Carbon framework (yeah, yeah, I know, Apple is deprecating Carbon, but at the moment I can\'t migrate this code to Cocoa).My plugin gets loaded by a mas[详细]
2022-12-24 14:02 分类:问答How else can I avoid leaking this Core Foundation object?
The following leaks: CFStringRef labelName = ABAddressBookCopyLocalizedLabel(ABMultiValueCopyLabelAtIndex(aMultiRef, indexPath.row));[详细]
2022-12-23 00:38 分类:问答How to enumerate CFProperyList / CFDictionary keys
I would like to iterate through a CFDictionary (CFPropertyList) and get all values on a specific level.[详细]
2022-12-20 06:32 分类:问答Getting "global" mouse position in Mac OS X
How can I get in Mac OS X \"global\" mouse position - I mean how can I in cocoa/cf/whatever find out cursor position even if it\'s outside the window, and even if my window is inactive?[详细]
2022-12-19 23:26 分类:问答Apple Carbon/CoreFoundation style guide?
Cocoa is well-documented开发者_如何学C and there is a lot of information on writing Cocoa code in good form.I\'m working on some code that works closely with hardware, requiring me to use CoreFoundati[详细]
2022-12-19 09:09 分类:问答