NSArrayController, addObject programatically

Discussion in 'Mac Programming' started by BollywooD, Apr 17, 2009.

  1. macrumors 6502

    Apr 27, 2005
    Surfers Paradise
    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.

    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:

Share This Page