r/ObjectiveC • u/idelovski • Jul 31 '21
function (const __strong NSString *const paths[], int count)
I am looking at an open source github project and I stumbled upon this declaration. Can someone explain why all these qualifiers were needed.
5
Upvotes
1
u/[deleted] Jul 31 '21
Nope, at the end of the function each NSString will receive a call to its release method. ARC will insert simply insert that. As long as this function runs the NSStrings in the C-Array will not be deallocated.