WMGenericCollection icon indicating copy to clipboard operation
WMGenericCollection copied to clipboard

ARC compatible?

Open avalanched opened this issue 11 years ago • 2 comments

Is this project compatible with ARC? because i constantly get an error stating

Must explicitly describe intended ownership of an object array parameter

avalanched avatar Apr 29 '14 10:04 avalanched

It should be compatible with ARC. If it works as intended, the only difference to the vanilla Cocoa collections are changes from (id) to (SomeClass *) in the header, which I don't see interfering with ARC.

Can you give a simplified example?

w-m avatar Apr 29 '14 23:04 w-m

Possible fix example is here : https://github.com/UsrNameu1/WMGenericCollection_Modified/blob/master/ModifiedHeaders/WMGenericArray.h One of the example I modified with ARC in arrayWithObjects argument declaration is : from const object_class [] to const __strong object_class []

other methods creating Collection from c language array could be fixed like this

UsrNameu1 avatar May 02 '14 00:05 UsrNameu1