532 questions
0 votes
1 answer
113 views
Bind selection in tableview in swift
So I've been doing Swift for like 1 1/2 weeks now, and coming from Objective-C, I would have thought the following would work. Everything I'm doing is completely without xibs. I have a class roughly ...
0 votes
1 answer
66 views
Identify modified row for NSTableView bound with NSArrayController
I have an NSTableView bound to an NSArrayController, and have registered an observer for whenever data changes to the data fields that the array controller manages. For example, here's a few of the ...
0 votes
1 answer
127 views
NSArrayController 'Add' function now causes saved NSTableView listed entries to temporarily lose focus
I have a few long functioning (Core Data) apps. built on an OSX (10.13.6) machine with an older version of Xcode. I customize an arrayController 'add' method to auto-insert the current date as ...
0 votes
0 answers
51 views
NSMutableArray add data to NSTableView creating an empty row?
I've create a function below which will call when a button is pressed: - (IBAction)setData:(id)sender{ [_myArrayController addObject:[NSMutableDictionary dictionaryWithObjectsAndKeys: ...
0 votes
1 answer
102 views
Combine NSArrayController with NSTableview method "objectValueFor"
Can I use NSArrayController for my tableview , and using simultaneously this method : ? func tableView(_ tableView: NSTableView, objectValueFor tableColumn: NSTableColumn?, row: Int) -> Any? The ...
2 votes
0 answers
124 views
Why is NSArrayController arrangedObjects returning an NSMutableIndexSet?
I have an NSTableView which calls my delegate. I am trying to customize the behavior of one my NSTableViewCells. Upon starting the program, I can scroll through my tableView successfully. My "...
0 votes
1 answer
58 views
Two NSArrayControllers bound to same NSManagedObjectContext
I have two nib files each with its own window populated by data from the same Core Data Managed Object Context (MOC) but each bound to a different array-controller. The problem is that when I delete a ...
0 votes
1 answer
69 views
Crash when setting NSArrayController's managedObjectContext to nil
I have a NSDocument based macOS app with Core Data which by its nature can only ever have one document open at a time. Therefore, when a new document is opened I close the currently open one. All ...
0 votes
1 answer
27 views
macOS Core Data – are toOne new records automatically assigned to the toMany Object the moment they are created?
I have two core data entities: Category and Music. Category has a toMany relationship. Music has a toOne relationship. Each entity display their values on separate tables. Tables are populated by ...
0 votes
1 answer
157 views
Binding visibility to arrayController selection
I have a NSTableView bound to a NSArrayController. I have two buttons below the table that must be enabled only if there is an element selected on the table. I select the buttons and bind ...
3 votes
0 answers
416 views
Swift macOS NSTableView very slow
I'm working in Swift (macOS) and have an NSTableView, the contents of which are bound to an NSArrayController. The tableView cells can set/edit the data using a mix of Strings and NSPopUpButtons ...
0 votes
1 answer
235 views
Sometimes NSArrayController is not refreshing NSTableView after core data delete/update
I am using NSArrayController Binding to populate NSTableView from core data. NSArrayController is connected to mainQueueConcurrencyType managed object context(main managed object). parent of main ...
0 votes
1 answer
50 views
Subclassed NSArrayController bind to custom property
I am on XCode 10, Objective-C, Mac OSX, not iOS. I have subclassed an NSArrayController to create a new property to bind to. SHArrayController.h @property (nonatomic) BOOL hasItems; ...
3 votes
1 answer
234 views
binding NSPopupbutton to an array of classes
I'm having difficulty binding a NSPopUpButton to an NSArrayController. The array controller manages an array (plants) of the the class Plant, which has a property named commonName which should be ...
-1 votes
1 answer
33 views
bind arrayControlle to NSViewControllerr in Document-based cocoa app cause the NSViewControllerr init(code :) called many times
I am develop a Document-based cocoa app use coredata,I bind NSViewController to NSArrayController like this : https://developer.apple.com/library/archive/qa/qa1871/_index.html , ,when I save some ...