PDA

View Full Version : NSArrayController, addObject programatically




BollywooD
Apr 17, 2009, 02:42 PM
I am using the following method to try and add an NSArray (from an NSTreecontroller) to my NSArraycontroller:
[myArrayController addObject:myArray];

but it never executes?

is there a better way to add objects to an arraycontroller, and have it reflected immediately.
:confused:

also, my arraycontroller has been set up in IB with bindings, and works well, however if on first launch, I try to edit an item in any row (without first adding or removing an item) my App hangs...
if I have added or removed an item, I dont get this problem?

do I somehow need to initialize the Arraycontroller, so it is available on launch.:confused: