Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is a example which might help you to fix the issue.</p> <ol> <li>iVar - > demoArray</li> <li>IBOutlet -> demoArrayController</li> </ol> <blockquote> <p>@interface ExAppDelegate : NSObject </p> <p>@property (assign) IBOutlet NSWindow *window;</p> <p>@property (strong) NSMutableArray *demoArray;</p> <p>@property (strong) IBOutlet NSArrayController *demoArrayController;</p> <p>@end</p> </blockquote> <p>Below is the implementation of the same class</p> <pre><code>@implementation ExAppDelegate @synthesize demoArray; - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application self.demoArray = [NSMutableArray array]; for (int i=0 ; i &lt;= 10 ; i++) { NSMutableDictionary *temp = [NSMutableDictionary dictionary]; [temp setObject:[NSNumber numberWithInt:i] forKey:@"number"]; [temp setObject:[NSString stringWithFormat:@"Demo %d",i] forKey:@"demoKey"]; [self.demoArray addObject:temp]; } [self.demoArrayController rearrangeObjects]; } @end </code></pre> <p>Now, UI Bindings - ></p> <ol> <li>Array Controller Bindings as show in below in the image</li> </ol> <p><img src="https://i.stack.imgur.com/jdExl.png" alt="enter image description here"></p> <ol start="2"> <li>Table View Column bindings.</li> </ol> <p><img src="https://i.stack.imgur.com/HJtTT.png" alt="enter image description here"></p> <p><strong>NOTE:</strong></p> <p><em>1. Make sure you are calling the rearrangeObjects on Array Controller after you add the objects to an array which is binded to Array Controller.</em></p> <p>[self.demoArrayController rearrangeObjects];</p> <p><em>2. In Table View Column Bindings make sure you have checked the check box "Continuously Updates Value".</em></p> <p>I Hope this fix the issue.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload