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

How to use predicate on arrayController and Core Data

I have a NSOutlineView that shows data from my Core Data store. The data is presented using an NSarrayController linked to my managedObjectContext and displayed in the NSOutlineView using NSTreeController (much like described here). I would like to…
0
votes
0 answers

PyObjC - NSTableView with checkboxes mapping to Python throws class is not key value coding-compliant

I am building a Mac application using PyObjC. In Interface Builder I have a NSTableView. The Columns are filled with NSTextFieldCells and NSButtonCells. I fill it with data using an array controller that itself is filled through a Python list of…
0
votes
1 answer

Get selected object in ArrayController from it's represented NSCollectionView item

Some days, I just want to bash my head against the wall. This is especially true when dealing with Cocoa and Apple's super generic documentation. (Apple's documentation is actually really good, I'm just angry that I can't figure this out) Okay, so I…
user2554650
0
votes
1 answer

Populating an NSPopUpButtonCell with string values

I am trying to populate a NSPopUpButtonCell with a list of strings. In -(init), I populate an NSArray with the values I want in the PopUp Button. How do I connect this to the NSArrayController I added in IB? Does my app delegate need an IBOutlet…
user253667
0
votes
1 answer

insert and modify a record in an entity using Core Data

I tried to find the answer of my question on the internet, but I could not. I have a simple entity in Core data that has a Value attribute (that is integer) and a Date attribute. I want to define two methods in my .m file. First method is the ADD…
aminfar
  • 2,297
  • 3
  • 27
  • 37
0
votes
1 answer

Have more than one NSTableView with different Content - not displays data

I've two TableViews (one SourceList and one Normal TableView). I'm not using ArrayControllers, just using: - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex; -…
ahmet2106
  • 4,957
  • 4
  • 27
  • 38
0
votes
1 answer

NSTableView, NSArrayController and reload only after key press?

I have the following situation: There is one custom view inside of the first window that contains a NSTableView. There is a second window which acts as a form for the current object behind the selection of the table view inside the first…
0
votes
1 answer

NSArrayController: Drag-to-Multi-Select keeps reseting upon adding new content

I have an NSArrayController hooked up to an NSManagedObjectContext. Additionally, I have an NSTableView whose Content and Selection Indexes are bound to said NSArrayController. Objects are constantly being added to the context in the background at…
Anonymous
  • 1,750
  • 3
  • 16
  • 21
0
votes
1 answer

NSCollectionViewItem button always returns first item from ArrayController

I have an NSCollectionView with NSArrayController bound to NSCollectionViewItem. The Item itself contains button (the whole space of Item). When the button clicked I'm trying to determine on which item button was clicked, but…
0
votes
1 answer

NSCollectionView Master detail binding configuration

I have the following models in my application. Board, holds a NSMutableArray property lists of type List below List, holds a NSArray property cards of type Card below Card, has a NSString property name The relationship is thus Board --> to-many…
0
votes
1 answer

How to find speed bottleneck in NSArrayController?

In my app I have a list of categories with a property that is an array of objects. An NSTreeController's content property is bound to that array of the current category. The categories are in a list from which the user can select one. The selected…
Mike Lischke
  • 48,925
  • 16
  • 119
  • 181
0
votes
1 answer

Show all objects in a NSTableView using NSArrayController

How to achieve a similar iTunes artists view like effect where all objects are concentrated in one row of a NSTableView just like this image: So far I've achieved the same effect by adding an object named "all objects" and monitoring if the user…
Bruno Vieira
  • 3,884
  • 1
  • 23
  • 35
0
votes
2 answers

Single model update for multiple changes in NSArrayController subclass

I implemented an NSArrayController subclass to implement row reordering with bindings, using the code included in this post as a starting point. In the -tableView:acceptDrop:row:dropOperation: method, I perform the following: [self…
insys
  • 1,288
  • 13
  • 26
0
votes
1 answer

Issue in lazy loading the table view

I am badly struck in a issue where I am trying to populate the nestableview lazily. Below is my approach. I have created a custom class PRIList where it has an instance of array to manage the models. I have bound the priList.items to the array…
PrithviRaj
  • 571
  • 1
  • 7
  • 15
0
votes
1 answer

How to bind different entities with NSTableView and NSTabView?

I have an NSArrayController which handles entities of GeometryShape. GeometryShape has: name, type, color. LineShape is a GeometryShape and has: beginPositionX, beginPositionY, endPositionX, endPositionY. CircleShape is a GeometryShape and has:…