Creating custom Core Foundation types.
Is it possible to create custom Core Foundation type开发者_开发百科s? Does anyone know any document or something that could help me with this? I'm just trying to port GLKit to iOS 4 to use in a project and there is this GLKMatrixStack type that is a Core Foundation Object.
Regarding your first question, I have two basic answers for you: yes and no. Heheh. Regarding your second question (and for further clarification) read on!
It's absolutely possible (and even easy) to do, in the literal sense. The catch is that it's "private" and therefore against the App Store submission policy. If you're still interested then to get started I'd refer you both to the comments and to the EXRange
example in CFRuntime.h. The Core Foundation sources are fairly involved, however, so if you'd like a more detailed explanation or sample code then just let me know.
精彩评论