Questions tagged [nsarraycontroller]

on Mac OS X, NSArrayController is a bindings compatible class that manages a collection of objects

NSArrayController is a Cocoa class intended to bridge an array (instance of NSArray or its subclasses) and a suitable view, for instance a table view.

It provides a simple interface to add, remove, filter and sort the array, as well as the necessary bindings to interface these functions to Cocoa actions.

More information in the official docs

532 questions
-1
votes
1 answer

NSArrayController: Doesn't update bold attribute

I have a tableview bound to a NSArrayController. The ArrayController gets it´s data from an array [NSObject]: class Fruits : NSObject { var name:String var price:Double // If I set 'isBold = true' here manually, //the font in my…
Josch Hazard
  • 323
  • 3
  • 20
-1
votes
1 answer

Cocoa bindings issue with three tableviews

im a osx-dev noob that is trying to build an application with three table views that will show the content of a core data store entity. But each table view is filtered on the attribute "status" of the entity. the problem occurs when i also want to…
Oscar
  • 375
  • 3
  • 15
-1
votes
1 answer

Editing value in NSTableView results in error

I have an NSTableView whose column's values are bound to an NSArrayController. The problem is, when a user tries to edit values in the table (all the columns are editable), the program throws this error: -[__NSCFDictionary setObject:forKey:]:…
scohe001
  • 15,110
  • 2
  • 31
  • 51
-1
votes
2 answers

How to get more than one Array in a picker view

Im really close on this one...For the purposes of this i have two text boxes. when pressed they invoke a ui picker. text box one returns values 1,2,3,4 text box two returns values A, B, C, D The problem is that when the picker is presented for text…
JSA986
  • 5,870
  • 9
  • 45
  • 91
-2
votes
2 answers

Swift - ArrayController, when does it get filled with data?

As per title, when I try to print the data from viewDidLoad(), nothing is present in the array controller. But when I print the data from one of the tableview methods there is something in there. So is there a method I can use from the…
Mark
  • 621
  • 1
  • 10
  • 24
-3
votes
3 answers

Using Core Data in code - Objective-C/Cocoa

I have Core Data entity named Event in my xcdatamodeld with 2 attributes : title and date. I have also an arrayController set to Entity mode with the Event entity (done with interface builder). I want to access the attributes of the objects in the…
Moray
  • 321
  • 2
  • 9
-4
votes
2 answers

Can I have an NSArray containing NSArrays

I would like to store multiple values for a label and I have some 10 labels. So is it possible to have a NSArray of NSArray objects? Can I do something like this: [[NSArray alloc] initWithObjects: NSArray1, NSArray2, nil];
1 2 3
35
36