NSBlog
c c++ cocoa code codeinjection corefoundation evil(2) fridayqna(3) garbagecollection hack(7) magic nib nscell objective-c objectivec(2) pyobjc python sourcecode
Friday Q&A 2010-07-30: Zeroing Weak References to CoreFoundation Objects
at 2010-07-30 19:01
It's time for another friendly edition of Friday Q&A. For my last Friday Q&A, I talked about MAZeroingWeakRef and how it's implemented for pure Objective-C objects. For this one, I'm going to discuss the crazy hacks I implemented to make it work with toll-free bridged CoreFoundation objects as well.Introducing MAZeroingWeakRef
at 2010-07-16 20:19
I'm extremely excited to announce a new library for Cocoa and Cocoa Touch development: MAZeroingWeakRef. In short, it's a library which allows zeroing weak references to be used in retain/release Cocoa code. This has all sorts of uses and should make retain/release coding less painful. While I discussed this in detail in my Friday Q&A post this week, I also want to make a separate announcement for people who don't want to read through all of the horrible details.