The compiler complains about this:
int randomSort(id obj1, id obj2, void *context) { // first line
return (arc4random()%3 - 1);
}
in first line:
_cmd undeclared
and
'self' undeclared (first use in this function)
When I not use arc4random() here, i.e. just return 1, everything is fine. I have other c functions in this file which use arc4random() without problems.
Any idea?