I've got a for loop that then passes the iterated object into a method with a byref param and get the following error:
Implicit conversion of an Objective-C pointer to 'FOO *__autoreleasing *' is disallowed with ARC
and warning:
Incompatible pointer types sending 'Foo *const __strong' to parameter of type 'Foo *__autoreleasing *'
The Loop:
for (Foo *obj in objArray) {
FooTableCell *newCell = [self createFooCellWithItem:obj];
}
The Method Signature:
-(FooTableCell *)createFooCellWithItem:(Foo **)newObj;
I've followed the suggestions at this SO q&a to no avail.
EDIT
Prepending a & before obj gives me the following error:
Sending 'Foo *const __strong *' to parameter of type 'Foo *__autoreleasing *' changes retain/release properties of pointer