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
0
votes
2 answers

Doing something wrong with bindings, can't find out what

I've a mutable array that holds instances of a model object. That model object has several properties one being "name". I have no problems initialising or populating the mutable array. I've a window with a drawer. I added a table to the drawer, the…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
0
votes
1 answer

NSArrayController "Content set" bound to NSTreeController issue

I have an NSOutlineView bound to a NSTreeController and a CoreData Datamodel. NSOutlineView displays his data properly. A NSTableView's cell values bound to a NSArrayController, displaying data from CoreData. NSTableview displays his data properly…
Boris
  • 360
  • 2
  • 12
0
votes
1 answer

How to make collection operators respect the controller's sort descriptor?

Cocoa has this concept of collection operators that allow to return a set of objects based on a property. In my array controller I have a number of objects that are executed on a specific date and I want to process them in some way. So I retrieve a…
Mike Lischke
  • 48,925
  • 16
  • 119
  • 181
0
votes
1 answer

Unable to use Managed Object Context proxy from Interface builder library

I am making a simple mac os x app, in which I will be showing some records in a table view, after retrieving those from local db. I am using core data and NSArrayController proxy for the same and I am trying to achieve it through cocoa-bindings. Now…
Devarshi
  • 16,440
  • 13
  • 72
  • 125
0
votes
0 answers

Set NSSearchfield with NSArrayController bindings programmatically

I have added a NSSearchField on top of a NSTableView programmatically. I would like to populate the TableView with an existing NSMutableArray which is having values in it (not nil). I would like to add everything programmatically in my program and…
Xander
  • 902
  • 2
  • 14
  • 33
0
votes
3 answers

NSArrayController addObject Returns null

I have a core data application with two NIBs, the main window with a pair of NSTableViews and a form for adding content. The form has an NSTextView and an NSTextField. I have two entities in core data, and manage the content with two…
Jon Buys
  • 1
  • 2
0
votes
0 answers

Nested NSCollectionView Error (with Binding) "[_NSClipViewOverhangView delegate]: unrecognized selector sent to instance 0x600000122c60"

I am trying to make a Wolfram | Alpha searcher in XCode 5. Using the API I need to access the pods (the first level of NSCollectionView) and the subpods (The nested NSCollectionView). I have a pod class (properties: podTitle [NSString] and subpods…
0
votes
1 answer

Binding an NSPopupButton to an NSArrayContraller with NSManagedObject subclasses

There seem to be dozens of questions about binding a NSPopupButton, so I feel a little better about struggling so much with this, but none of them seem to fix my issue. I have an NSManagedObject subclass that has a one to many relationship with…
0
votes
1 answer

Why add/remove method was called automatically when NSArrayController binds to an array?

I'm trying to understand how NSArrayController works... When I create an NSMutableArray "employeeArray" to hold "Person" object. I use NSArrayController in GUI and bind with the "employeeArray". I add two buttons for adding and removing "Person"…
Strong84
  • 1,869
  • 2
  • 19
  • 24
0
votes
1 answer

NSArrayController setContent blocking main thread

In nib file I am binding arrayController to tableView and programmatically updating its content each time when I get array of data as arrayController.content=someRecords; But it consuming more time to set content (0.23 second for 1000 records)…
Anil Varghese
  • 42,757
  • 9
  • 93
  • 110
0
votes
1 answer

core data how to get value of array controller of entity

I have two Entities. Customers and Documents. In a table the user selects the Customer.Below i create new Document object and one of the value i have to add is the ID of the Customer.I don't know how to access the value of selected object in array…
user2414590
  • 123
  • 1
  • 7
0
votes
1 answer

Sharing NSArrayController Between Nibs

I have an Core Data-based iTunes-like app I'm building that has an NSTableView in the main window and allows the user to select items in the table view and perform a "get info", like in iTunes. Currently I'm working on the single-item get info…
Chuck
  • 4,662
  • 2
  • 33
  • 55
0
votes
1 answer

Core data and custom NSCell

I am building a toy app using core data for two entities Log (attributes text and date) and Tag with a many-to-many tags relationship from Log to Tag. I want to show logs in a table, so I: created an NSArrayController instance, LogController in IB…
raheel
  • 1,407
  • 1
  • 15
  • 24
0
votes
1 answer

How do I perform an action in response to an item being added to an NSArrayController's content?

I have an NSArrayController whose content is the "servers" property of my AppDelegate. I have an NSTextField which is bound to the "selection.name" property of the NSArrayController and I have buttons attached to the "add:" and "remove:" actions on…
Michael Bishop
  • 4,240
  • 3
  • 37
  • 41
0
votes
2 answers

Objects removed from NSArraycontroller stay in table until clicked

I have an NSArraycontroller which is bound to my application's AppDelegate's managedObjectContext. It acts as a download queue. Items are added to the NSArraycontroller programmatically I have a table which shows two of the fields in this, each a…
Struddie
  • 140
  • 5