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 selectedIndex is always zero

I have a NSArrayController bound to an array in one of my objects. I have a object inheriting from NSObject which is added to the nib file containing the NSArrayController. That object has a property called textureAtlas of type TextureAtlas (a type…
0
votes
1 answer

How to pre-fill a NSTableView bound to an ArrayController in a Core Data ( Document based)

Here is my problem: I have a Core Data- Document based program with ARC ( Automatic Reference Counting); I want the tableView shows some data at the beginning. but I receive nothing. Here is what I have done: 1- I made a core data with Entity:…
0
votes
1 answer

Enable multiple selection of rows in NStableview

I created a small application that is based on the structure of this example application. But now I need you to select multiple rows in tableview, I tried to find a solution but did not succeed. Could you tell me how should I do? Keep in mind that I…
Andrea
  • 427
  • 3
  • 16
0
votes
1 answer

How to read an object from managedObjectContext in Core Data ( Xcode )

I have a program that gets some numbers in a tableView . I have a Core Data based program that has an entity with some attributes and could bind the columns of the tableview to those attributes. Now I want to have the sum of each column , but…
0
votes
1 answer

Many-to-Many entities and NSPopUpButton

all. Entities: [Library {title}] <-->> [Book {title}] <<-->> [Author {name}] Controllers: NSArrayController [Library] => {Entity: Library} NSArrayController [Book] => {Entity: Book, ContentSet: Library, books} NSArrayController [Author] => {Entity:…
iTux
  • 1,946
  • 1
  • 16
  • 20
0
votes
1 answer

Custom NSMangedObject accessor crashed NSOutlineView

I am thinking this is a bug in Core Data but before I file a bug report, I want to be sure it is not just me being stupid. I set up an NSOutlineView to access the data of 5 different Core Data entities. Each entity's data is accessed with a…
0
votes
1 answer

Accessing Core Data entity name from NSArrayController -arrangedObjects

Given an NSArrayController "objController" which is bound to the moc in IB, shouldn't the following work? And given that it doesn't seem to work, how do I go about retrieving an entity's name from my NSArrayController? for (NSManagedObject *thisObj…
0
votes
1 answer

Cocoa: non document based app, array controller bindings?

I've looked around and haven't found a clear answer. I'm trying to use an array controller in a non document based app and I can't seem to make it work. Is it impossible to do this? I'm not sure how to get the content array to bind to the…
joeythrift
  • 29
  • 6
0
votes
2 answers

Cocoa: Binding to an array of NSStrings which are stored in the application's preferences

OK, I'm feeling really REALLY stupid for asking this question, but I've managed to stump myself so hard that I doubt I have the proper detachment to figure out the answer for myself any more. My apologies in advance... I have been playing around…
Chronor
  • 11
  • 1
  • 3
0
votes
1 answer

arraycontroller nsmutablearray add programmatically

I trying to add a data on table view via Array Controller thats bind to a NSMutableArray. On the IB property it looks like this : and on the code I tried to add the NSMutableArray dynamically then reload the view, bu nothings happened. for(int…
Alfian Busyro
  • 2,295
  • 2
  • 17
  • 32
0
votes
1 answer

Master detail view with subdetail view and bindings

I try to make a Master Detail View with an additional Detaildetail View with bindings in the interface builder. The whole application is for Mac OSX. I have 3 table views. Master-Table, DetailsOfMaster-Table and DetailsOfDetails-Table For each…
0
votes
0 answers

NSArrayController causing double submission in NSTableView

I have a working version of my code using TableViewDataSource, but I want to transition it over to using NSArrayController. The code is for an interaction tracker that I'm working on for a project. It is a little messy so I know it needs some…
0
votes
1 answer

how to set action for a button inside the NSCollectionViewItem

I was using an NSCollectionView to show a list of pictures in the binded array controller, also, I want to add a delete button on the left-top corner of each picture so that when someone press the button, it will remove the corresponding object in…
0
votes
1 answer

My first Cocoa master-detail application: Binding difficulties

I'm writing my first master detail view in Cocoa. My data model is really simple: just an NSMutableArray that contains instances of a single class having a few NSStrings properties. Here's what I've created so far: A class representing the…
0
votes
1 answer

NSArrayController and specific entities

Maybe I don't understand how to use a NSArrayController correctly, but here's my situation. I have my entities set up like this: Account -> Folder -> Chat. So I'll have lots of chats for a specific folder entity. I'm wanting my array controller to…
Yep
  • 653
  • 5
  • 20