I want to clear the content from an NSArrayController programmatically, which seems an embarrassingly simple thing to do, yet which eludes me.
The following line crashes my program:
and
does the same thing.
With NSMutableArray, you get at least removeAllObjects.
The following line crashes my program:
Code:
[data removeObjects:[data arrangedObjects]];
Code:
[data removeObjects:(NSArray *)[data arrangedObjects]];
With NSMutableArray, you get at least removeAllObjects.