I have a question regarding the cocoa binding.
I have a xib file, inside this xib file (named AddInformation.xib), I have added a array controller. I have bound the array to one of my NSMutableArray.
I have also set an IBOutlet for this array controller so that I can manipulate the selection of the array controller
@property (weak) IBOutlet NSArrayController *arrayController;
so, somethere in the code, when I called:
myViewController = [[NSViewController alloc] initWithNibName:@"AddInformation" bundle:nil];
BOOL b = [arrayController setSelectionIndex: 2]; // b is returned as NO
it doesn't work, it always return the first object in the array, even thought I changed the selectionindex to 2 (I have more than 10 objects in the array)
am I missing something?