Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wrjohns

macrumors newbie
Original poster
Is it possible to use a CF object to store a collection of class instances?

The documentation has a good example on defining callbacks to work with user-defined stuctures. But say, instead of a structure, I wanted to use a class?

I'd like to use CFBinaryHeap in conjunction with an NSObject subclass. Not sure if/how this is possible.
 
Yes, this will work just fine. Foundation and CF are 'bridged' for all NSObjects for retain counting. This is critical because the Foundation collections are implemented by the CF ones.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.