My program quit working so I trimmed it down to the bare bones to try to get to the issue. Strangely this console shows a bus error and my int variable has a value like 188726 in the debugger. Any ideas what's going on here?
Strangely, this does work
int crazy;
crazy = 2;
NSString *cheese[3];
cheese[0] = @"Say cheese 0";
cheese[1] = @"Say cheese 1";
cheese[2] = @"Say cheese 2";
cheese[3] = @"Say cheese 3";
[myText setStringValue:cheese[crazy]];
Strangely, this does work
int crazy;
NSString *cheese[3];
cheese[0] = @"Say cheese 0";
cheese[1] = @"Say cheese 1";
cheese[2] = @"Say cheese 2";
cheese[3] = @"Say cheese 3";
crazy = 2;
[myText setStringValue:cheese[crazy]];