This question is similar to mine, but does not contain an answer. I want to convert a CFIndex into an NSInteger. I have checked the list of types that have toll-free bridging and this is not one of them.
This question is similar to mine, but does not contain an answer. I want
Share
The concept of toll-free bridging only applies to Objective-C objects and Core Foundation objects.
CFIndexis simply a typedef for the primitivesigned longtype, andNSIntegeris a typedef for the primitivelongtype, which is the same assigned long. You can just assign a value of one type to a variable of the other type.