NSArrayController, addObject programatically

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

  1. macrumors 6502

    Joined:
    Apr 27, 2005
    Location:
    Surfers Paradise
    #1
    I am using the following method to try and add an NSArray (from an NSTreecontroller) to my NSArraycontroller:
    Code:
    [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:
     

Share This Page