@Tiberiu891 pointed the problem.
You should be careful when adding items to the toolbar. The same instances added several times cause this strange crash.
Here is an example:
NSMutableArray* items = [self.toolbar.items mutableCopy];
[items addObject:self.fixedSpaceButton];
//...
[self.toolbar setItems:items];
The correct way doing this is:
NSMutableArray* items = [self.toolbar.items mutableCopy];
if(![items containsObject:self.fixedSpaceButton]) {
[items addObject:self.fixedSpaceButton];
}
//...
[self.toolbar setItems:items];
Topic:
App & System Services
SubTopic:
Core OS
Tags: