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
1 answer

NSArrayController bound to NSCollectionview

I'm kinda new into bindings, somehow prevented it. But I want to use them now. Talking about OSX and this is programmed in code not in IB. So, I have data coming from CoreData into my ArrayController. A NSCollectionView is bound to this…
0
votes
0 answers

Is there any way of getting the parent from the child nsArraycontroller?

using cocoa bindings, i have bound to the following: ChildArrayController ContentSet bindto: ParentArrayController controllerkey: selection modelkeypath: children Is there any way of getting the parent from the child…
Gabe Rainbow
  • 3,658
  • 4
  • 32
  • 42
0
votes
1 answer

NSTableView set column to disabled

I have a NSTableView tied to a NSArrayController. The first column are checkboxes. I want to have the users select the rows to perform an action on via the checkboxes and when the user clicks the "Run" button I want to set the state of that column…
skellington
  • 149
  • 1
  • 1
  • 7
0
votes
0 answers

I have an NSmutable array which is bound to arraycontroller and a table view . The array contents are strings and I m able to display them in

I have an NSMutableArray and a table view which displays the data in NSMutable array. The array contents are string and its being displayed properly . I have used binding to display the data using array controller. When I try to edit the row of…
0
votes
1 answer

Change an entity attribute displayed in a table through an Array Controller

I have a set of attributes that are displayed in Tableview through an Array controller (all bindings), I have written some code to change one of the attributes based on the content of others. I wrote this in the .m file that Core data created for…
Canto
  • 1
  • 1
0
votes
1 answer

Modifications on objects in NSUserDefaults-bound NSArrayController not saving

In my project, I have an NSArrayController bound to save to a the application's standard defaults (NSUserDefaults). This in itself works perfectly - objects added are saved and restored as expected. However, if I programmatically modify one of the…
0
votes
1 answer

Core Data: How to update an NSArrayController immediately after adding an NSManagedObject?

I am adding an instance in core data. The entity is represented by an NSArrayController. I would like to access the newly added instance through the controller. A "Skill" instance is added and then I try to access it through selectAddedObject as…
Carelinkz
  • 936
  • 8
  • 27
0
votes
2 answers

Array Controller not updating Table View until "Add" button is pressed

I'm new to Cocoa and Objective-C, so I'm following the Lynda courses and learning a lot. Thing is, I've encountered a problem that I cannot figure out, even though I seem to be doing it exactly the same way... Basically, I'm trying to get a Table…
Nerrolken
  • 1,975
  • 3
  • 24
  • 53
0
votes
1 answer

is concurrently enumerating managed object in core data thread-safe

I need to update a value for each arranged object in Core Data, and I am currently using a loop. But I want to know if the following code is thread-safe or not, and why. ManagedObjectContext is not thread safe, explained…
0
votes
2 answers

Using Core Data with a non-document based app - Cocoa

I have worked with Core Data using document based apps. But know, I'm trying to build an app similar the Notes app on the Mac OS X. So I've created a non-document based app with a Data Model. I binded the values exactly the same way that I was doing…
Moray
  • 321
  • 2
  • 9
0
votes
3 answers

Add an object to an NSArrayController and have it save into the Entity

I have an NSArrayController that is connected to my Entity in Core Data. I have an IBOutlet attached to the NSArrayController so that I can add objects from my Delegate. I am trying to add an Object to the NSArrayController with a some presets. So…
benj9a4
  • 101
  • 2
  • 8
0
votes
1 answer

how to sort a view-based tableview

I can't manage to sort a view-based tableview. I use an arrayController that control an entity of core data. I tried to select a column and in the attribute inspector I used as a sort key the attributes name relative to that column and compare: as…
0
votes
0 answers

Create and XML File in Xcode cocoa Application?

I grab a XML file from server and Parse it with the NSXMLParser and display it in a NSTableView. From there, i can add a row to the tableview. I am guessing the added information is added to the arrayController(I am very new to Xcode and…
Hunter Mitchell
  • 7,063
  • 18
  • 69
  • 116
0
votes
1 answer

Persist the content and order of an array controller in cocoa

I have a Mac OS application that uses core data to persist its objects to disk, backed by sqlite. I have a tableView where all the NSManagedObject subclasses can be inspected. This is bound to an arrayController that is bound to an entity in a…
ryecroft
  • 352
  • 2
  • 9
0
votes
1 answer

get list of checked checkboxes through arraycontroller

i have an arraycontroller bound to the tableview. i need to return the number of checked checkoxes in the table. the arraycontroller is filled with nsmutabledictionaries. this is the code i have so far: -(IBAction)getlist:(id)sender{ checkedchecks =…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97