How can I pass a NSObject to another class using CFNotifications? I need to use CFNotifications for what I’m trying to do, so NSNotifications will not work.
I thought about converting a NSObject to a kind of CFString id of that object, and then recreating the NSObject on the other process (that receives the CFNotification) with that CFString, but I have no idea on how to do that.
Please help,
Pedro Franceschi.
With
CFNotificationCenterPostNotificationyou can do this:Leave out the
__bridges if you’re not using ARC.