How to get the address of an objective c object into a void * volatile * under ARC?
问题 I have a simple objective c object NSManagedObjectContext * moc = nil Now I need to pass it into a function in an ARC environment that accepts parameter of type void *volatile * value I tried &((__bridge void *)moc)) but I get the following compiler error Address expression must be lvalue or a function pointer I also tried void ** addr = (__bridge void **)(&moc); But I get the error Incompatible types casting 'NSManagedObjectContext * __strong *' to 'void **' with a __bridge cast Is there any