Not registered yet?
Register now! It is easy and done in 1 minute and gives you access to special discounts and much more!
What is the different between,
(__bridge CFDataRef) data
Xcode asked me to change it to bridge. Is that because of ARC?
Yes, ARC needs to be given instructions when you cast between toll-free bridged types. In this case __bridge tells ARC to do nothing, so this will behave the same as the previous standard cast.
You can read the Transitioning to ARC Release Notes for more details on the different ways to do bridging casts.
Thanks for the link! very helpful